--- 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" jazyk: "zh-TW" kanonicka: "https://owasp.org/Top10/2021/zh-TW/" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 11:54:47" znaku: 17141 slov: 1561 kodovani: "iso-8859-2" sha256: "a36e749933bdcbdf3482118036a6693d34004871f24b17d1f6edd5a91e73fca4" --- # OWASP Top 10 2021 介紹 歡迎來到最新版本的 OWASP Top 10! OWASP Top 10 2021 ć˜Żä¸€ĺ€‹ĺ…¨ć–°çš„ĺĺ–ŽďźŒĺŒ…ĺŤäş†ä˝ ĺŻäťĽĺˆ—ĺ°ä¸‹äž†çš„ć–°ĺœ–ç¤şčŞŞć˜ŽďźŒč‹Ľćœ‰éœ€čŚçš„čŠąďźŒä˝ ĺŻäťĽĺžžćˆ‘ĺ€‘çš„çś˛é ä¸Šé˘ä¸‹čź‰ă€‚ ĺœ¨ć­¤ćˆ‘ĺ€‘ćƒłĺ°ć‰€ćœ‰č˛˘çťäş†äť–ĺ€‘ć™‚é–“ĺ’Œčł‡ć–™çš„äşşçľŚäşˆä¸€ĺ€‹ćĽľĺ¤§çš„ć„ŸčŹă€‚ć˛’ćœ‰ä˝ ĺ€‘ďźŒé€™ä¸€ĺ€‹ć–°ç‰ˆćœŹć˜Żä¸ćœƒĺ‡şçžçš„ă€‚**謝謝**。 ## Top 10 for 2021 有什麼新的變化? 這次在 OWASP Top 10 for 2021 有三個全新的分類,有四個分類有做名稱和範圍的修正,並有將一些類別做合併。 **A01:2021-權限控制失效** 從第五名移上來; 94% 被測試的應用程式都有驗測到某種類別權限控制失效的問題。在權限控制失效這個類別中被對應到的 34 個 CWEs 在驗測資料中出現的次數都高於其他的弱點類別。 **A02:2021-ĺŠ ĺŻ†ćŠŸĺˆśĺ¤ąć•ˆ** 提升一名到第二名,在之前為 *敏感資料外曝*ďźŒĺœ¨ć­¤ĺŽšçžŠä¸‹ćŻ”čźƒéĄžäźźć–źä¸€ĺ€‹ĺťŁćł›çš„ĺ•éĄŒč€Œéžć šćœŹĺŽŸĺ› ă€‚ĺœ¨ć­¤é‡ć–°ĺŽšçžŠä¸Śĺ°‡ĺ•éĄŒć ¸ĺżƒĺŽšçžŠĺœ¨ĺŠ ĺŻ†ćŠŸĺˆśçš„ĺ¤ąć•—ďźŒä¸Śĺ› ć­¤é€ ćˆć•ć„Ÿć€§čł‡ć–™ĺ¤–ć´Šćˆ–ć˜Żçłťçľąč˘Ťç ´ĺŁžă€‚ **A03:2021-注入式攻擊** 下滑到第三名。94% 被測試的應用程式都有驗測到某種類別注入式攻擊的問題。在注入式攻擊這個類別中被對應到的 33 個 CWEs 在驗測資料中出現的次數為弱點問題的第二高。跨站腳本攻擊現在在新版本屬於這個類別。 **A04:2021-不安全設計** 這是 2021 年版本的新類別,並特別針注在與設計相關的缺失。如果我們真的希望讓整個產業"向左移動"ďźŠč¨ťä¸€ďźŠďźŒé‚Łćˆ‘ĺ€‘ĺż…é ˆé€˛ä¸€ć­Ľçš„ĺž€ĺ¨č„…ĺťşć¨ĄďźŒĺŽ‰ĺ…¨č¨­č¨ˆć¨ĄĺĄŠçš„č§€ĺżľďźŒĺ’ŒĺŽ‰ĺ…¨ĺƒč€ƒćžść§‹ĺ‰é€˛ă€‚ *註一: Move Left 於英文原文中代表在軟體開發及交付過程中,在早期找出及處理相關問題,同 Shift Left Testing。* **A05:2021-安全設定缺陷** 從上一版本的第六名移動上來。90% 被測試的應用程式都有驗測到某種類別的安全設定缺陷。在更多的軟體往更高度和有彈性的設定移動,我們並不意外這個類別的問題往上移動。在前版本中的 XML 外部實體注入攻擊 XML External Entities)現在屬於這個類別。 **A06:2021-危險或過舊的元件** 在之前標題為 *使用有已知弱點的元件*ă€‚ĺœ¨ćœŹćŹĄç‰ˆćœŹä¸­ć–źćĽ­ç•Œĺ•ĺˇä¸­ćŽ’ĺçŹŹäşŒďźŒä˝†äšŸćœ‰čśłĺ¤ çš„çľąč¨ˆčł‡ć–™čŽ“ĺŽƒĺŻäťĽé€˛ĺ…Ľ Top 10。這個類別從 2017 版本的第九名爬升到第六,也是我們持續掙扎做測試和評估風險的類別。這也是唯一一個沒有任何 CVE 能被對應到 CWE ĺ…§çš„éĄžĺˆĽďźŒć‰€äťĽé č¨­çš„ĺ¨č„…ĺŠĺ˝ąéŸżćŹŠé‡ĺœ¨é€™éĄžĺˆĽçš„ĺˆ†ć•¸ä¸Šč˘Ťé č¨­ç‚ş 5.0。 **A07:2021-認證及驗證機制失效** 在之前標題為 *錯誤的認證機制*。在本次版本中油第二名下滑至此,並同時包含了將認證相關缺失的 CWE 包含在內。這個類別仍是 Top 10 不可缺少的一環,但同時也有發現現在標準化的架構有協助降低次風險發生機率。 **A08:2021-軟體及資料完整性失效** 這是 2021 年版本全新的類別,並在軟體更新,機敏及重要資料,和 CI/CD 管道中並沒有做完整性的確認為前提做假設並進行評估。在評估中影響權重最高分的 CVE/CVSS 資料都與這類別中的 10 個 CWE 對應到。2017 年版本中不安全的反序列化現在被合併至此類別。 **A09:2021-資安記錄及監控失效** 在之前為*不完整的紀錄及監控*並納入在業界問卷中在本次列名為第三名並從之前的第十名上移。這個類別將擴充去納入更多相關的缺失,但這也是相當難去驗證,並沒有相當多的 CVE/CVSS 資料可以佐證。但是在這個類別中的缺失會直接影響到整體安全的可視性,事件告警及鑑識。 **A10:2021-伺服端請求偽é€** é€™ĺ€‹éĄžĺˆĽć˜Żĺœ¨ćĽ­ç•Œĺ•ĺˇćŽ’ĺçŹŹä¸€ĺďźŒä¸Śĺœ¨ć­¤ç‰ˆćœŹĺ…§ç´ĺ…Ľă€‚ç”ąčł‡ć–™éĄŻç¤şć­¤ĺ•éĄŒćœ‰čźƒä˝Žč˘ŤéŠ—ć¸ŹćŹĄć•¸ĺ’ŒçŻ„ĺœďźŒä˝†ćœ‰éŤ˜ć–źĺšłĺ‡çš„ĺ¨č„…ĺŠĺ˝ąéŸżćŹŠé‡ćŻ”çŽ‡ă€‚é€™ĺ€‹éĄžĺˆĽçš„ĺ‡şçžäšŸć˜Żĺ› ç‚şćĽ­ç•Œĺ°ˆĺŽśé‡č¤‡ç”łć˜Žé€™éĄžĺˆĽçš„ĺ•éĄŒç›¸ç•śé‡čŚďźŒĺłä˝żĺœ¨ćœŹćŹĄčł‡ć–™ä¸­ä¸Ść˛’ćœ‰čśłĺ¤ çš„čł‡ć–™ĺŽťéĄŻç¤şé€™ĺ€‹ĺ•éĄŒă€‚ ## 分析方法 本次 Top 10 çš„é¸ć“‡ć–šĺźćŻ”äťĽĺž€ć›´é‡čŚ–čł‡ć–™ĺˆ†ćžďźŒä˝†ä¸Śä¸ć˜ŻĺŽŒĺ…¨äťĽčł‡ć–™ĺˆ†ćžç‚şä¸ťă€‚ćˆ‘ĺ€‘ĺžžčł‡ć–™ĺˆ†ćžä¸­ćŒ‘é¸äş†ĺ…Ťĺ€‹é˘¨éšŞéĄžĺˆĽďźŒç„śĺžŒç”ąćĽ­ç•Œĺ•ĺˇä¸­ćŒ‘é¸ĺ…Šĺ€‹é˘¨éšŞéĄžĺˆĽă€‚ćˆ‘ĺ€‘ĺžžéŽĺž€çš„ĺˆ†äşŤčł‡ć–™ä¸­ĺŽťçž­č§ŁďźŒä¸Śćœ‰ćˆ‘ĺ€‘ä¸€ĺ€‹ĺŸşćœŹçš„ç†ç”ąă€‚ĺŽŸĺ› ć˜Żć‰€ćœ‰çš„čł‡ĺŽ‰ç ”çŠśäşşĺ“Ąéƒ˝ä¸ć–ˇçš„ĺœ¨ć‰žć–°çš„ĺźąéťžä¸Ść‰žĺ‡şć–šćł•ĺŽťéŠ—č­‰ĺźąéťžďźŒä˝†ćœƒéœ€čŚć™‚é–“ć‰čƒ˝ĺ°‡é€™äş›éŠ—ć¸Źć–šćł•ç´ĺ…Ľĺˆ°ć—˘ćœ‰çš„ĺˇĽĺ…ˇĺ’Œć¸ŹčŠŚćľç¨‹ä¸­ă€‚ç•śćˆ‘ĺ€‘čƒ˝ćœ‰ć•ˆçš„ĺ¤§é‡ć¸ŹčŠŚé€™ĺ€‹ĺźąéťžć™‚ďźŒćœ‰ĺŻčƒ˝ĺˇ˛çś“éŽäş†ĺ¤šĺš´çš„ć™‚é–“ă€‚ç‚şäş†čŚčŽ“ĺ…Šč€…äš‹é–“ćœ‰ĺšłčĄĄďźŒćˆ‘ĺ€‘ä˝żç”¨ćĽ­ç•Œĺ•ĺˇčŤ‹ć•™ĺœ¨ĺ‰çˇšçš„čł‡ĺŽ‰ç ”çŠśĺ°ˆĺŽśĺ€‘ä¸Śçž­č§Łäť–ĺ€‘čŚşĺž—ćœ‰ĺ“Şäş›ć˜Żäť–ĺ€‘čŚşĺž—ĺš´é‡ä˝†ĺ°šćœŞĺ‡şçžĺœ¨ć¸ŹčŠŚčł‡ć–™ä¸­çš„ćźć´žĺŠĺ•éĄŒă€‚ 這是幾個我們為了要讓 OWASP Top 10 ć›´ĺŠ ćˆç†Ÿçš„é‡čŚć”ščŽŠă€‚ ### 如何建構風險類別 有別於上一個版本,在這次的 OWASP Top 10 有一些風險類別的修改。我們在此以比較高的角度說明一下這次的類別修改。 ĺœ¨ä¸Šä¸€ćŹĄçš„čł‡ć–™ć”śé›†ç•śä¸­ďźŒćˆ‘ĺ€‘ĺ°‡čł‡ć–™ć”śé›†çš„é‡ĺżƒć”žĺœ¨é ĺ…ˆĺŽšçžŠĺĽ˝çš„ç´„ 30 個 CWEs 並納入一個欄位徵求其他的發現。從這裡我們看到決多數的組織都只會專注在這 30 個 CWEs č€Œä¸ĺ¸¸ĺŠ ĺ…Ľĺ…śäť–äť–ĺ€‘ĺŻčƒ˝ç™źçžçš„ CWEs。在這次的改版中,我們將所有的問題都以開放式的方法處理,並沒有限制在任何一個 CWEs。我們請教了從 2017 ĺš´é–‹ĺ§‹ć‰€ć¸ŹčŠŚçš„çś˛é ć‡‰ç”¨ç¨‹ĺźć•¸é‡ďźŒç„śĺžŒĺœ¨é€™äş›ç¨‹ĺźä¸­č‡łĺ°‘ćœ‰ä¸€ĺ€‹ CWE č˘Ťç™źçžçš„ć•¸é‡ă€‚é€™ĺ€‹ć źĺźčŽ“ćˆ‘ĺ€‘čƒ˝ĺ¤ čż˝čš¤ćŻĺ€‹ CWE 跟所有被驗測及統計的應用程式的數量跟關係。我們也忽略了 CWE ĺ‡şçžçš„é ťçŽ‡ďźŒé›–ç„śĺœ¨ćŸäş›ç‹€ćłä¸‹é€™äšŸč¨ąć˜Żĺż…é ˆçš„ďźŒä˝†é€™ĺťéšąč—äş†é˘¨éšŞéĄžĺˆĽćœŹčşŤčˆ‡ć‡‰ç”¨ç¨‹ĺźć•¸é‡ć•´éŤ”çš„é—œäż‚ă€‚ć‰€äťĽä¸€ĺ€‹ć‡‰ç”¨ç¨‹ĺźćœ‰ 4 個或是 4,000 個弱點並不是被計算在 Top 10 的基礎。但同時我們也從原本的 30 多個 CWEs 增長到快 400 多個CWEs ĺŽťé€˛čĄŒĺˆ†ćžă€‚ćˆ‘ĺ€‘ĺ› ć­¤äšŸč¨ˆç•ŤćœŞäž†ĺšć›´ĺ¤šçš„čł‡ć–™ĺˆ†ćžďźŒä¸Śĺœ¨ĺ°ć­¤ç‰ˆćœŹé€˛čĄŒčŁœĺ……čŞŞć˜Žă€‚č€Œé€™äş›ĺ˘žĺŠ çš„ CWEs 也同時影響了這次風險類別的規劃。 我們花了好幾個月將 CWEs é€˛čĄŒĺˆ†çľ„čˇŸĺˆ†éĄžďźŒč€Œä¸”ĺ…śĺŻŚĺŻäťĽä¸€ç›´čŠąć›´ĺ¤šĺ€‹ćœˆĺŽťĺšé€™äťśäş‹ćƒ…ă€‚ä˝†ćˆ‘ĺ€‘ĺż…é ˆĺœ¨ćŸä¸€ĺ€‹ć™‚é–“éťžĺœä˝ă€‚ĺœ¨ CWEs 當中,同時有 *原ĺ›* 以及 *症狀* 的問題,而像是 "ĺŠ ĺŻ†ćŠŸĺˆśĺ¤ąć•ˆ" 和 "設定問題" 這類型的 *原ĺ›* 與 "機敏資料外洩" 和 "阻斷服務" 這類型的 *症狀* ć˜Żĺ°çŤ‹çš„ă€‚ĺ› ć­¤ćˆ‘ĺ€‘ćąşĺŽšĺœ¨ĺŻäťĽçš„ć™‚ĺ€™čŚć›´ĺ°ˆćł¨ć–źĺş•ĺą¤çš„ĺŽŸĺ› ďźŒĺ› ç‚şé€™ć˜ŻĺŻäťĽćœ‰ć•ˆćŒ‡ĺ‡şĺ•éĄŒçš„ćœŹéŤ”čˇŸĺŒć™‚ćäž›ĺ•éĄŒçš„č§Łćąşć–šĺ‘ă€‚ĺ°ˆćł¨ĺœ¨ĺ•éĄŒć ¸ĺżƒč€Œä¸ĺ°‡é‡ĺżƒć”žĺœ¨ç—‡ç‹€ä¸Śä¸ć˜Żä¸€ĺ€‹ć–°çš„ćŚ‚ĺżľ,Top Ten ćœ‰ĺ˛äťĽäž†ä¸€ç›´ć˜Żç—‡ç‹€čˇŸĺ•éĄŒć ¸ĺżƒçš„çśœĺˆéŤ”ďźŒĺŞć˜Żé€™ćŹĄćˆ‘ĺ€‘ć›´ĺˆťć„çš„ĺ°‡äť–çŞéĄŻĺ‡şäž†ă€‚ĺœ¨é€™ćŹĄçš„ć–°ç‰ˆćœŹä¸­ďźŒćŻä¸€ĺ€‹éĄžĺˆĽĺ…§çš„ĺšłĺ‡ćœ‰ 19.6 個 CWE,而最低的 *A10:2021-伺服端請求偽é€* 有一個 CWE 到 *A04:2021-不安全設計* 有四十個 CWEă€‚é€™ĺ€‹ć–°çš„éĄžĺˆĽćžść§‹čƒ˝ćäž›äźćĽ­ć›´ĺ¤šçš„čł‡ĺŽ‰č¨“çˇ´çš„ĺĽ˝č™•ďźŒĺ› ç‚şĺœ¨ć–°çš„ćžść§‹ä¸‹ĺŻäťĽć›´ĺ°ˆćł¨ĺœ¨ćŸĺ€‹čŞžçłťćˆ–ĺšłĺ°ä¸Šçš„ CWE。 ### 選擇類別時資料的使用方式 在 2017 年,我們用事件發生次數去判斷可能發生的機率去選擇類別,然後透過一群在業界擁有數十年經驗的專家團對討論並依照 *可發生性*,*可發現性(同可能性)*,和 *技術影響力* 去做排名。在 2021 年,我們希望如果可以的話用資料證明可發生性和技術影響性。 我們下載了 OWASP Depndency Check 並取出了 CVSS 漏洞,並將相關的 CWE ç”¨ĺ˝ąéŸżĺŠ›ĺˆ†ć•¸ĺˆ†çž¤ă€‚é€™čŠąäş†ä¸€äş›ć™‚é–“ĺ’ŒĺŠ›ć°ŁĺŽťç ”çŠśĺ› ç‚şć‰€ćœ‰çš„ CVEs 都有 CVSSv2 ĺˆ†ć•¸ďźŒä˝†ć˜Żĺœ¨ĺ…śä¸­ĺ› ç‚ş CVSSv2 莟 CVSSv3 äš‹é–“ćœ‰ä¸€äş›çźşĺ¤ąć˜Żĺż…é ˆč˘ŤäżŽć­Łçš„ă€‚çś“éŽäş†ä¸€ćŽľć™‚é–“ĺžŒďźŒć‰€ćœ‰çš„ CVEs 都會有對應的 CVSSv3 的分數。再者,分數的範圍和計算的公式在 CVSSv2 和 CVSSv3 之間也做了更新。 在 CVSSv2 中,漏洞和影響力兩者都可達到 10.0 分,但是公式本身會將兩者調整為漏洞佔 60%,然後影響力佔 40%。在 CVSSv3 中,理論上的最高值將漏洞限制在 6.0 分而影響力在 4.0 分。當考慮到權重比率時,影響力的分數會偏高,在 CVSSv3 中幾乎平均會多出 1.5 分,而漏洞分數卻會平均少 0.5 分。 從 OWASP Dependcy Check çż ĺ–ĺ‡şçš„ NVD 資料當中有將近 12.5 萬筆 CVE 資料有對應到 CWE,而有 241 筆獨特的 CWEs 有對應到 CVE。6.2萬筆 CWE 有對應到 CVSSv3 分數,所以大約是整體資料中一半的部分。 而在 Top Ten,我們計算漏洞和影響力的平均分數的方式如下。我們將所有有 CVSS 分數的 CVE 依照 CWE 分組,然後依照有 CVSSv3 çš„ćźć´žĺ’Œĺ˝ąéŸżĺŠ›ĺœ¨ć‰€ćœ‰čł‡ć–™ä¸­çš„ç™žĺˆ†ćŻ”ä˝œćŹŠé‡ďźŒĺœ¨ĺŠ ä¸Ščł‡ć–™ä¸­ćœ‰ CVSSv2 的資料去做平均。我們將這些平均後的 CWEs 對應到資料中,然後將他的漏洞和引想力分數使用在另一半的風險公式中。 ## 為什麼就不純粹做統計分析? é€™äş›čł‡ć–™çš„çľćžœćœ€ä¸ťčŚć˜Żč˘Ťé™ĺˆśĺœ¨čƒ˝ä˝żç”¨č‡Şĺ‹•ĺˇĽĺ…ˇć¸ŹčŠŚĺ‡şäž†çš„çľćžœă€‚ĺŻć˜Żç•śä˝ čˇŸä¸€ä˝ćœ‰çś“éŠ—çš„ć‡‰ç”¨ç¨‹ĺźĺŽ‰ĺ…¨ĺ°ˆĺŽśčŠçš„ć™‚ĺ€™ďźŒäť–ĺ€‘ćœƒčˇŸä˝ čŞŞçľ•ĺ¤§ĺ¤šć•¸äť–ĺ€‘ć‰žĺˆ°çš„ĺ•éĄŒéƒ˝ä¸ĺœ¨é€™äş›čł‡ć–™čŁĄé˘ă€‚ĺŽŸĺ› ć˜Żä¸€ĺ€‹ć¸ŹčŠŚčŚč˘Ťč‡Şĺ‹•ĺŒ–çš„ć™‚ĺ€™ďźŒéœ€čŚčŠąć™‚é–“ĺŽťé–‹ç™źé€™äş›ĺźąéťžć¸ŹčŠŚçš„ć–šćł•čŤ–ďźŒç•śä˝ éœ€čŚĺ°‡é€™ĺ€‹ć¸ŹčŠŚč‡Şĺ‹•ĺŒ–ä¸Śčƒ˝ĺ°ĺ¤§é‡çš„ć‡‰ç”¨ç¨‹ĺźĺŽťéŠ—č­‰ć™‚ďźŒĺˆćœƒčŠąä¸Šć›´ĺ¤šçš„ć™‚é–“ă€‚ç•śćˆ‘ĺ€‘ĺ›žé ­çœ‹ĺŽťĺš´ç˛äťĽĺ‰ćœ‰ĺŻčƒ˝ć˛’ĺ‡şçžçš„ä¸€äş›ĺ•éĄŒçš„čś¨ĺ‹˘ďźŒćˆ‘ĺ€‘ç™źçžĺ…śĺŻŚéƒ˝ć˛’ćœ‰ĺœ¨é€™äş›čł‡ć–™ç•śä¸­ă€‚ ĺ› ć­¤ďźŒç”ąć–źčł‡ć–™ä¸ĺŽŒĺ…¨çš„é—œäż‚ďźŒćˆ‘ĺ€‘ĺŞćœ‰ĺžžčł‡ć–™ä¸­é¸ĺ‡ş 8 個類別,而並不是 10 ĺ€‹ă€‚ĺ‰Šä¸‹çš„ĺ…Šĺ€‹éĄžĺˆĽć˜ŻĺžžćĽ­ç•Œĺ•ĺˇä¸­ć‰€é¸ĺ‡şçš„ă€‚é€™ćœƒĺ…č¨ąĺœ¨ĺ‰çˇšçš„ĺƒčˆ‡č€…ĺŽťé¸ĺ‡şäť–ĺ€‘čŞç‚şçš„éŤ˜é˘¨éšŞďźŒč€Œä¸ć˜Żç´”ç˛šäžć“ščł‡ć–™ĺŽťĺˆ¤ć–ˇďźˆç”šč‡łĺŻčƒ˝čł‡ć–™ć°¸é éƒ˝ä¸ćœƒćœ‰ĺ‡şçžçš„čš¤čˇĄďź‰ă€‚ ## 為什麼用事故率而不是用發生次數 There are three primary sources of data. We identify them as Human-assisted Tooling (HaT), Tool-assisted Human (TaH), and raw Tooling. Tooling 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 an application. This high frequency drowns out most other vulnerabilities found in reports or data. TaH, 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. Suppose 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). In 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. ## What is your data collection and analysis process? We 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. We publish a call for data through social media channels available to us, both project and OWASP. On the [OWASP Project page](https://owasp.org/www-project-top-ten/#div-data_2020), we list the data elements and structure we are looking for and how to submit them. In the [GitHub project](https://github.com/OWASP/Top10/tree/master/2021/Data), we have example files that serve as templates. We work with organizations as needed to help figure out the structure and mapping to CWEs. We 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. We look at the eight categories with the highest incidence rates for inclusion in the Top 10. We also look at the industry 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 in order. ## Data Factors There are data factors that are listed for each of the Top 10 Categories, here is what they mean: - *CWEs Mapped*: The number of CWEs mapped to a category by the Top 10 team. - *Incidence Rate*: Incidence rate is the percentage of applications vulnerable to that CWE from the population tested by that org for that year. - (Testing) *Coverage*: The percentage of applications tested by all organizations for a given CWE. - *Weighted Exploit*: The Exploit sub-score from CVSSv2 and CVSSv3 scores assigned to CVEs mapped to CWEs, normalized, and placed on a 10pt scale. - *Weighted Impact*: The Impact sub-score from CVSSv2 and CVSSv3 scores assigned to CVEs mapped to CWEs, normalized, and placed on a 10pt scale. - *Total Occurrences*: Total number of applications found to have the CWEs mapped to a category. - *Total CVEs*: Total number of CVEs in the NVD DB that were mapped to the CWEs mapped to a category. ## Category Relationships from 2017 There has been a lot of talk about the overlap between the Top Ten risks. By the definition of each (list of CWEs included), there really isn't any overlap. However, conceptually, there can be overlap or interactions based on the higher-level naming. Venn diagrams are many times used to show overlap like this. The Venn diagram above represents the interactions between the Top Ten 2017 risk categories. While doing so, a couple of essential points became obvious: 1. One could argue that Cross-Site Scripting ultimately belongs within Injection as it's essentially Content Injection. Looking at the 2021 data, it became even more evident that XSS needed to move into Injection. 2. The overlap is only in one direction. We will often classify a vulnerability by the end manifestation or "symptom," not the (potentially deep) root cause. For instance, "Sensitive Data Exposure" may have been the result of a "Security Misconfiguration"; however, you won't see it in the other direction. As a result, arrows are drawn in the interaction zones to indicate which direction it occurs. 3. Sometimes these diagrams are drawn with everything in *A06:2021 Using Components with Known Vulnerabilities*. While some of these risk categories may be the root cause of third-party vulnerabilities, they are generally managed differently and with different responsibilities. The other types are typically representing first-party risks. # Thank you to our data contributors The 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. | | | | | | --- | --- | --- | --- | | AppSec Labs | GitLab | Micro Focus | Sqreen | | Cobalt.io | HackerOne | PenTest-Tools | Veracode | | Contrast Security | HCL Technologies | Probely | WhiteHat (NTT) | ## Thank you to our sponsors The OWASP Top 10 2021 team gratefully acknowledge the financial support of Secure Code Warrior and Just Eat.