---
title: "CAPEC-54: Query System for Information"
url: https://radicalnotion.ai/capec/capec-54
type: capec
description: "An adversary, aware of an application's location (and possibly authorized to use the application), probes an application's structure and evaluates its robustness by submitting requests and examining responses. Often, this is accomplished by sending variants of expected queries in the hope that these modified queries might return information beyond what the expected set of queries would provide."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-54: Query System for Information

- **Abstraction:** Standard
- **Status:** Draft
- **Typical severity:** Low
- **Likelihood of attack:** High
- **CAPEC catalog version:** 3.9

## Description

An adversary, aware of an application's location (and possibly authorized to use the application), probes an application's structure and evaluates its robustness by submitting requests and examining responses. Often, this is accomplished by sending variants of expected queries in the hope that these modified queries might return information beyond what the expected set of queries would provide.

## Execution flow

### Step 1: Explore

\[Determine parameters\] Determine all user-controllable parameters of the application either by probing or by finding documentation

### Step 2: Experiment

\[Cause error condition\] Inject each parameter with content that causes an error condition to manifest

### Step 3: Experiment

\[Modify parameters\] Modify the content of each parameter according to observed error conditions

### Step 4: Exploit

\[Follow up attack\] Once the above steps have been repeated with enough parameters, the application will be sufficiently mapped out. The adversary can then launch a desired attack (for example, Blind SQL Injection)

## Prerequisites

- This class of attacks does not strictly require authorized access to the application. As Attackers use this attack process to classify, map, and identify vulnerable aspects of an application, it simply requires hypotheses to be verified, interaction with the application, and time to conduct trial-and-error activities.

## Skills required

- **Medium:** Although fuzzing parameters is not difficult, and often possible with automated fuzzers, interpreting the error conditions and modifying the parameters so as to move further in the process of mapping the application requires detailed knowledge of target platform, the languages and packages used as well as software design.

## Resources required

- The Attacker needs the ability to probe application functionality and provide it erroneous directives or data without triggering intrusion detection schemes or making enough of an impact on application logging that steps are taken against the adversary. The Attack does not need special hardware, software, skills, or access.

## Indicators

- Repeated errors generated by the same piece of code are an indication, although it requires careful monitoring of the application and its associated error logs, if any.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Data | - |

## Mitigations

- Application designers can construct a 'code book' for error messages. When using a code book, application error messages aren't generated in string or stack trace form, but are cataloged and replaced with a unique (often integer-based) value 'coding' for the error. Such a technique will require helpdesk and hosting personnel to use a 'code book' or similar mapping to decode application errors/logs in order to respond to them normally.
- Application designers can wrap application functionality (preferably through the underlying framework) in an output encoding scheme that obscures or cleanses error messages to prevent such attacks. Such a technique is often used in conjunction with the above 'code book' suggestion.

## Example instances

Blind SQL injection is an example of this technique, applied to successful exploit. See also: CVE-2006-4705

Attacker sends bad data at various servlets in a J2EE system, records returned exception stack traces, and maps application functionality. In addition, this technique allows attackers to correlate those servlets used with the underlying open source packages (and potentially version numbers) that provide them.

## Related weaknesses (CWE)

- [CWE-209](https://radicalnotion.ai/cwe/cwe-209): Generation of Error Message Containing Sensitive Information

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-116](https://radicalnotion.ai/capec/capec-116) | Excavation |
| Child | [CAPEC-95](https://radicalnotion.ai/capec/capec-95) | WSDL Scanning |
| Child | [CAPEC-127](https://radicalnotion.ai/capec/capec-127) | Directory Indexing |
| Child | [CAPEC-215](https://radicalnotion.ai/capec/capec-215) | Fuzzing for application mapping |
| Child | [CAPEC-261](https://radicalnotion.ai/capec/capec-261) | Fuzzing for garnering other adjacent user/sensitive data |
| Child | [CAPEC-462](https://radicalnotion.ai/capec/capec-462) | Cross-Domain Search Timing |

## Frequently asked questions

### What is CAPEC-54?

An adversary, aware of an application's location (and possibly authorized to use the application), probes an application's structure and evaluates its robustness by submitting requests and examining responses. Often, this is accomplished by sending variants of expected queries in the hope that these modified queries might return information beyond what the expected set of queries would provide.

### How does a Query System for Information attack work?

It typically unfolds over 4 phases. It begins with: \[Determine parameters\] Determine all user-controllable parameters of the application either by probing or by finding documentation

### How do you prevent CAPEC-54?

Application designers can construct a 'code book' for error messages. When using a code book, application error messages aren't generated in string or stack trace form, but are cataloged and replaced with a unique (often integer-based) value 'coding' for the error. Such a technique will require helpdesk and hosting personnel to use a 'code book' or similar mapping to decode application errors/logs in order to respond to them normally.

### What weaknesses does CAPEC-54 target?

CAPEC-54 exploits one CWE weakness: CWE-209 (Generation of Error Message Containing Sensitive Information).

### How severe is CAPEC-54?

MITRE rates CAPEC-54 as Low severity with high likelihood of attack.

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/54.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/capec/capec-54). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
