CAPECattack pattern

CAPEC-155 Screen Temporary Files for Sensitive Information

Medium Official page ↗
Abstraction
Detailed
Status
Draft
Likelihood of attack
Medium
Typical severity
Medium
CAPEC version
3.9

Description

An adversary exploits the temporary, insecure storage of information by monitoring the content of files used to store temp data during an application's routine execution flow. Many applications use temporary files to accelerate processing or to provide records of state across multiple executions of the application. Sometimes, however, these temporary files may end up storing sensitive information. By screening an application's temporary files, an adversary might be able to discover such sensitive information. For example, web browsers often cache content to accelerate subsequent lookups. If the content contains sensitive information then the adversary could recover this from the web cache.

Execution flow

1. [Explore] [Look for temporary files in target application] An adversary will try to discover temporary files in a target application. Knowledge of where the temporary files are being stored is important information. 2. [Experiment] [Attempt to read temporary files] An adversary will attempt to read any temporary files they may have discovered through normal means. 3. [Exploit] [Use function weaknesses to gain access to temporary files] If normal means to read temporary files did not work, an adversary will attempt to exploit weak temporary file functions to gain access to temporary files.

Prerequisites

• The target application must utilize temporary files and must fail to adequately secure them against other parties reading them.

Related

Weakness · not in database (1)

Child of · CAPEC (1)

  • CAPEC-150 Collect Data from Common Resource Locations attack pattern

Referenced by CAPEC · can precede (1)

  • CAPEC-149 Explore for Predictable Temporary File Names attack pattern