---
title: "CAPEC-85: AJAX Footprinting"
url: https://radicalnotion.ai/capec/capec-85
type: capec
description: "This attack utilizes the frequent client-server roundtrips in Ajax conversation to scan a system. While Ajax does not open up new vulnerabilities per se, it does optimize them from an attacker point of view. A common first step for an attacker is to footprint the target environment to understand what attacks will work. Since footprinting relies on enumeration, the conversational pattern of rapid, multiple requests and responses that are typical in Ajax applications enable an attacker to look for many vulnerabilities, well-known ports, network locations and so on. The knowledge gained through Ajax fingerprinting can be used to support other attacks, such as XSS."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-85: AJAX Footprinting

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

## Description

This attack utilizes the frequent client-server roundtrips in Ajax conversation to scan a system. While Ajax does not open up new vulnerabilities per se, it does optimize them from an attacker point of view. A common first step for an attacker is to footprint the target environment to understand what attacks will work. Since footprinting relies on enumeration, the conversational pattern of rapid, multiple requests and responses that are typical in Ajax applications enable an attacker to look for many vulnerabilities, well-known ports, network locations and so on. The knowledge gained through Ajax fingerprinting can be used to support other attacks, such as XSS.

## Execution flow

### Step 1: Explore

\[Send request to target webpage and analyze HTML\] Using a browser or an automated tool, an adversary sends requests to a webpage and records the received HTML response. Adversaries then analyze the HTML to identify any known underlying JavaScript architectures. This can aid in mappiong publicly known vulnerabilities to the webpage and can also helpo the adversary guess application architecture and the inner workings of a system.

- Record all "src" values inside script tags. These JavaScript files are compared to lists of files for known architectures. If there is a large match between the "src" values and architecture files, then it can be assumed that particular architecture is being used.

## Prerequisites

- The user must allow JavaScript to execute in their browser

## Skills required

- **Medium:** To land and launch a script on victim's machine with appropriate footprinting logic for enumerating services and vulnerabilities in JavaScript

## Resources required

- None: No specialized resources are required to execute this type of attack.

## Consequences

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

## Mitigations

- Design: Use browser technologies that do not allow client side scripting.
- Implementation: Perform input validation for all remote content.

## Example instances

Footprinting can be executed over almost any protocol including HTTP, TCP, UDP, and ICMP, with the general goal of gaining further information about a host environment to launch further attacks. The attacker can probe the system for banners, vulnerabilities, filenames, available services, and in short anything the host process has access to. The results of the probe are either used to execute javascript (for example, if the attackers' footprint script identifies a vulnerability in a firewall permission, then the client side script executes a javascript to change client firewall settings, or an attacker may simply echo the results of the scan back out to a remote host for targeting future attacks) or to inform other data gathering activities in order to craft atta.

## Related weaknesses (CWE)

- [CWE-20](https://radicalnotion.ai/cwe/cwe-20): Improper Input Validation
- [CWE-79](https://radicalnotion.ai/cwe/cwe-79): Improper Neutralization of Input During Web Page Generation
- [CWE-86](https://radicalnotion.ai/cwe/cwe-86): Improper Neutralization of Invalid Characters in Identifiers in Web Pages
- [CWE-96](https://radicalnotion.ai/cwe/cwe-96): Improper Neutralization of Directives in Statically Saved Code
- [CWE-113](https://radicalnotion.ai/cwe/cwe-113): Improper Neutralization of CRLF Sequences in HTTP Headers
- [CWE-116](https://radicalnotion.ai/cwe/cwe-116): Improper Encoding or Escaping of Output
- [CWE-184](https://radicalnotion.ai/cwe/cwe-184): Incomplete List of Disallowed Inputs
- [CWE-348](https://radicalnotion.ai/cwe/cwe-348): Use of Less Trusted Source
- [CWE-692](https://radicalnotion.ai/cwe/cwe-692): Incomplete Denylist to Cross-Site Scripting

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-580](https://radicalnotion.ai/capec/capec-580) | System Footprinting |
| Can precede | [CAPEC-63](https://radicalnotion.ai/capec/capec-63) | Cross-Site Scripting (XSS) |

## Frequently asked questions

### What is CAPEC-85?

This attack utilizes the frequent client-server roundtrips in Ajax conversation to scan a system. While Ajax does not open up new vulnerabilities per se, it does optimize them from an attacker point of view. A common first step for an attacker is to footprint the target environment to understand what attacks will work. Since footprinting relies on enumeration, the conversational pattern of rapid, multiple requests and responses that are typical in Ajax applications enable an attacker to look for many vulnerabilities, well-known ports, network locations and so on. The knowledge gained through Ajax fingerprinting can be used to support other attacks, such as XSS.

### How does a AJAX Footprinting attack work?

It typically unfolds over 1 phase. It begins with: \[Send request to target webpage and analyze HTML\] Using a browser or an automated tool, an adversary sends requests to a webpage and records the received HTML response. Adversaries then analyze the HTML to identify any known underlying JavaScript architectures. This can aid in mappiong publicly known vulnerabilities to the webpage and can also helpo the adversary guess application architecture and the inner workings of a system.

### How do you prevent CAPEC-85?

Design: Use browser technologies that do not allow client side scripting.

### What weaknesses does CAPEC-85 target?

CAPEC-85 exploits 9 CWE weaknesses, including CWE-20 (Improper Input Validation), CWE-79 (Improper Neutralization of Input During Web Page Generation), CWE-86 (Improper Neutralization of Invalid Characters in Identifiers in Web Pages) and CWE-96 (Improper Neutralization of Directives in Statically Saved Code).

### How severe is CAPEC-85?

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

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

---

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