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

    LDAP Manipulation

    ABSTRACT

    執行一個 LDAP 指令,該指令包含了由用戶控制的數值字符串,且使用濾字符串以外的字符,這可能會使攻擊者改變指令的含義或執行非法 LDAP 命令。

    EXPLANATION

    LDAP manipulation 錯誤在以下情況中出現:

    1. 數據從一個不可信賴的數據源進入程序。

    2. 數據在一個動態 LDAP 指令的濾字符串之外使用。

    例 1:下面的代碼會從一個通過 HTTP 請求提交的隱藏字段中讀取 ou 字符串,并使用該字符串創建一個新的 DirectoryEntry


    ...
    de = new DirectoryEntry("LDAP://ad.example.com:389/ou="
    + hiddenOU.Text + ",dc=example,dc=com");
    ...


    由于連接字串包含用戶輸入且在匿名捆綁下執行,因此攻擊者可能會通過指定一個意外的 ou 值來篡改查詢結果。問題在于開發人員沒能充分利用適當的 access control 機制來限制隨后的查詢,使其只能讀取那些允許當前用戶讀取的雇員記錄。

    REFERENCES

    [1] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A1 Unvalidated Input

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

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

    [4] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 90

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

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

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

    [8] 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.dataflow.dotnet.ldap_manipulation

    97av