<dd id="sga4y"><optgroup id="sga4y"></optgroup></dd>
<nav id="sga4y"><code id="sga4y"></code></nav>
  • <optgroup id="sga4y"></optgroup>

    WCF Misconfiguration: Weak Class Reference

    ABSTRACT

    程序使用弱類引用,攻擊者可能會利用這一點來執行未經授權的代碼。

    EXPLANATION

    程序引用未唯一標識的用戶定義類。當 .NET 加載這種弱標識類時,CLR 類型加載器會在以下位置按指定順序搜索此類:

    - 如果已知這種類型的程序集,加載器會搜索配置文件的重定向位置、GAC、使用配置信息的當前程序集和應用程序基目錄。

    - 如果程序集未知,加載程序會搜索當前程序集、mscorlib 以及 TypeResolve 事件處理器返回的位置。

    這種 CLR 搜索順序可使用類似 Type Forwarding 機制和 AppDomain.TypeResolve 事件的鉤子進行修改。

    如果攻擊者通過創建具有相同名稱的其他類并將其放在 CLR 首先加載的其他位置來利用 CLR 搜索順序,CLR 將會在無意中執行攻擊者提供的代碼。

    例 1:以下 WCF 配置文件中的 <behaviorExtensions/> 元素指示 WCF 將自定義行為類添加到特定的 WCF 擴展。


    <system.serviceModel>
    <extensions>
    <behaviorExtensions>
    <add name="myBehavior" type="MyBehavior" />
    </behaviorExtensions>
    </extensions>
    </system.serviceModel>

    REFERENCES

    [1] Standards Mapping - OWASP Top 10 2010 - (OWASP 2010) A1 Injection

    [2] Standards Mapping - OWASP Top 10 2007 - (OWASP 2007) A2 Injection Flaws

    [3] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A6 Injection Flaws

    [4] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP3510 CAT I, APP3570 CAT I

    [5] Standards Mapping - Security Technical Implementation Guide Version 3.4 - (STIG 3.4) APP3510 CAT I, APP3570 CAT I

    [6] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 95

    [7] Standards Mapping - SANS Top 25 2009 - (SANS 2009) Insecure Interaction - CWE ID 116

    [8] Microsoft Developer Network (MSDN)

    [9] Standards Mapping - Payment Card Industry Data Security Standard Version 1.2 - (PCI 1.2) Requirement 6.3.1.1, Requirement 6.5.2

    [10] Standards Mapping - Payment Card Industry Data Security Standard Version 2.0 - (PCI 2.0) Requirement 6.5.1

    [11] Standards Mapping - Payment Card Industry Data Security Standard Version 1.1 - (PCI 1.1) Requirement 6.5.6

    [12] Standards Mapping - FIPS200 - (FISMA) SI


    Copyright 2013 Fortify Software - All rights reserved.
    (Generated from version 2013.1.1.0008 of the Fortify Secure Coding Rulepacks)
    desc.config.dotnet.wcf_misconfiguration_weak_class_reference

    97av