---
title: "CAPEC-170: Web Application Fingerprinting"
url: https://radicalnotion.ai/capec/capec-170
type: capec
description: "An attacker sends a series of probes to a web application in order to elicit version-dependent and type-dependent behavior that assists in identifying the target. An attacker could learn information such as software versions, error pages, and response headers, variations in implementations of the HTTP protocol, directory structures, and other similar information about the targeted service. This information can then be used by an attacker to formulate a targeted attack plan. While web application fingerprinting is not intended to be damaging (although certain activities, such as network scans, can sometimes cause disruptions to vulnerable applications inadvertently) it may often pave the way for more damaging attacks."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-170: Web Application Fingerprinting

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

## Description

An attacker sends a series of probes to a web application in order to elicit version-dependent and type-dependent behavior that assists in identifying the target. An attacker could learn information such as software versions, error pages, and response headers, variations in implementations of the HTTP protocol, directory structures, and other similar information about the targeted service. This information can then be used by an attacker to formulate a targeted attack plan. While web application fingerprinting is not intended to be damaging (although certain activities, such as network scans, can sometimes cause disruptions to vulnerable applications inadvertently) it may often pave the way for more damaging attacks.

## Execution flow

### Step 1: Explore

\[Request fingerprinting\] Use automated tools or send web server specific commands to web server and wait for server's response.

- Use automated tools or send web server specific commands to web server and then receive server's response.

### Step 2: Experiment

\[Increase the accuracy of server fingerprinting of Web servers\] Attacker usually needs to send several different commands to accurately identify the web server. Attacker can also use automated tools to send requests to the server. The responses of the server may be different in terms of protocol behavior.

- Observe the ordering of the several HTTP response headers. The ordering of the header of each server may have unique identities.
- Send bad requests or requests of nonexistent pages to the server.
- Attacker takes existing automated tools to recognize the type and the version of the web server in use.

### Step 3: Experiment

\[Identify Web Application Software\] After the web server platform software has been identified, the attacker start to identify web application technologies such as ASP, .NET, PHP and Java on the server.

- Examine the file name extensions in URL, for example .php indicates PHP script interfaced with Apache server.
- Examine the HTTP Response Headers. This may leak information about software signatures
- Examine Cookies that may contain server's software information.
- Check error pages.

### Step 4: Experiment

\[Identify Backend Database Version\] Determining the database engine type can assist attackers' attempt to successfully execute SQL injection. Some database API such as ODBC will show a database type as part of the driver information when reporting an error.

- Use tools to send bogus SQL query to the server and check error pages.

## Prerequisites

- Any web application can be fingerprinted. However, some configuration choices can limit the useful information an attacker may collect during a fingerprinting attack.

## Skills required

- **Low:** Attacker knows how to send HTTP request, SQL query to a web application.

## Resources required

- While simple fingerprinting can be accomplished with only a web browser, for more thorough fingerprinting an attacker requires a variety of tools to collect information about the target. These tools might include protocol analyzers, web-site crawlers, and fuzzing tools. Footprinting a service adequately may also take a few days if the attacker wishes the footprinting attempt to go undetected.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Other | Information Leakage |

## Mitigations

- Implementation: Obfuscate server fields of HTTP response.
- Implementation: Hide inner ordering of HTTP response header.
- Implementation: Customizing HTTP error codes such as 404 or 500.
- Implementation: Hide URL file extension.
- Implementation: Hide HTTP response header software information filed.
- Implementation: Hide cookie's software information filed.
- Implementation: Appropriately deal with error messages.
- Implementation: Obfuscate database type in Database API's error message.

## Example instances

An attacker sends malformed requests or requests of nonexistent pages to the server. Consider the following HTTP responses. Response from Apache 1.3.23 $ nc apache.server.com 80 GET / HTTP/3.0 HTTP/1.1 400 Bad Request Date: Sun, 15 Jun 2003 17:12: 37 GMT Server: Apache/1.3.23 Connection: close Transfer: chunked Content-Type: text/HTML; charset=iso-8859-1 Response from IIS 5.0 $ nc iis.server.com 80 GET / HTTP/3.0 HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Content-Location: http://iis.example.com/Default.htm Date: Fri, 01 Jan 1999 20:14: 02 GMT Content-Type: text/HTML Accept-Ranges: bytes Last-Modified: Fri, 01 Jan 1999 20:14: 02 GMT ETag: W/e0d362a4c335be1: ae1 Content-Length: 133 \[REF-37\]

## Related weaknesses (CWE)

- [CWE-497](https://radicalnotion.ai/cwe/cwe-497): Exposure of Sensitive System Information to an Unauthorized Control Sphere

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-541](https://radicalnotion.ai/capec/capec-541) | Application Fingerprinting |

## Frequently asked questions

### What is CAPEC-170?

An attacker sends a series of probes to a web application in order to elicit version-dependent and type-dependent behavior that assists in identifying the target. An attacker could learn information such as software versions, error pages, and response headers, variations in implementations of the HTTP protocol, directory structures, and other similar information about the targeted service. This information can then be used by an attacker to formulate a targeted attack plan. While web application fingerprinting is not intended to be damaging (although certain activities, such as network scans, can sometimes cause disruptions to vulnerable applications inadvertently) it may often pave the way for more damaging attacks.

### How does a Web Application Fingerprinting attack work?

It typically unfolds over 4 phases. It begins with: \[Request fingerprinting\] Use automated tools or send web server specific commands to web server and wait for server's response.

### How do you prevent CAPEC-170?

Implementation: Obfuscate server fields of HTTP response.

### What weaknesses does CAPEC-170 target?

CAPEC-170 exploits one CWE weakness: CWE-497 (Exposure of Sensitive System Information to an Unauthorized Control Sphere).

### How severe is CAPEC-170?

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

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

---

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