CAPEC

Common Attack Pattern Enumeration and Classification
Common Attack Pattern Enumeration and Classification

A Community Knowledge Resource for Building Secure Software

Home > CAPEC List > Individual CAPEC Dictionary Definition (Release 1.1)   View the CAPEC List

Individual CAPEC Dictionary Definition (Release 1.1)
Individual CAPEC Dictionary Definition (Release 1.1)

Block Access to Libraries
Attack Pattern ID
Pattern Abstraction: Standard

96

Typical Severity

Medium

Description

Summary


An application typically makes calls to functions that are a part of libraries external to the application.  These libraries may be part of the operating system or they may be third party libraries.  It is possible that the application does not handle situations properly where access to these libraries has been blocked.  Depending on the error handling within the application, blocked access to libraries may leave the system in an insecure state that could be leveraged by an attacker.  

Attack Execution Flow

  1. Determine what external libraries the application accesses.

  2. Block access to the external libraries accessed by the application.

  3. Monitor the behavior of the system to see if it goes into an insecure/inconsistent state.

  4. If the system does go into an insecure/inconsistent state, leverage that to obtain information about the system functionality or data, elevate access control, etc. The rest of this attack will depend on the context and the desired goal.

Attack Prerequisites

An application requires access to external libraries.

An attacker has the priviliges to block application access to external libraries.

Typical Likelihood of Exploit

Medium

Methods of Attack
  • API Abuse
  • Modification of Resources
Examples-Instances

Description


A web-based system uses a third party cryptographic random number generation library that derives entropy from machine's hardware.  This library is used in generation of user session ids used by the applicatoin.  If the library is inaccessible, the application instead uses a software based weak pseudo random number generation library.  An attacker of the system blocks access of the application to the third party cryptographic random number generation library (by renaming it).  The application in turn uses the weak pseudo random number generation library to generate session ids that are predictable.  An attacker then leverages this weakness to guess a session id of  another user to perform a horizontal elevation of privilege escalation and gain access to another user's account.

Attacker Skill or Knowledge Required

Low

Solutions and Mitigations

Ensure that application handles situations where access to APIs in external libraries is not available securely. If the application cannot continue its execution safely it should fail in a consistent and secure fashion.

Attack Motivation-Consequences
  • Denial of Service
  • Information Leakage
  • Privilege Escalation
Related Weaknesses
CWE-IDWeakness NameWeakness Relationship Type
589Call to Non-ubiquitous APITargeted
227Failure to Fulfill API Contract (aka 'API Abuse')Targeted
Related Security Principles
  • Failing Securely
Purpose

Exploitation

CIA Impact
Confidentiality ImpactIntegrity ImpactAvailability Impact
LowLowHigh
Technical Context
Architectural ParadigmFrameworkPlatformLanguage
AllAllAllAll
Source
Submission(s)
SubmitterOrganizationDateComment
Sean BarnumCigital, Inc.2007-03-25Identified priority for pattern creation
Modification(s)
ModifierOrganizationDateComment
Evgeny LebanidzeCigital, Inc.,2007-03-21Fleshed out content for pattern
Sean BarnumCigital, Inc2007-04-16Review and revise
 
Page Last Updated: April 18, 2008