CAPEC-57
Utilizing REST's Trust in the System Resource to Obtain Sensitive Data
This attack utilizes a REST(REpresentational State Transfer)-style applications' trust in the system resources and environment to obtain sensitive data once SSL is terminated.
On this page
Rest applications premise is that they leverage existing infrastructure to deliver web services functionality. An example of this is a Rest application that uses HTTP Get methods and receives a HTTP response with an XML document. These Rest style web services are deployed on existing infrastructure such as Apache and IIS web servers with no SOAP stack required.
Unfortunately from a security standpoint, there frequently is no interoperable identity security mechanism deployed, so Rest developers often fall back to SSL to deliver security. In large data centers, SSL is typically terminated at the edge of the network - at the firewall, load balancer, or router. Once the SSL is terminated the HTTP request is in the clear (unless developers have hashed or encrypted the values, but this is rare). The adversary can utilize a sniffer such as Wireshark to snapshot the credentials, such as username and password that are passed in the clear once SSL is terminated. Once the adversary gathers these credentials, they can submit requests to the web service provider just as authorized user do. There is not typically an authentication on the client side, beyond what is passed in the request itself so once this is compromised, then this is generally sufficient to compromise the service's authentication scheme.
Ask an AI about this attack pattern
Show the prompt
Explain the attack pattern CAPEC-57: Utilizing REST's Trust in the System Resource to Obtain Sensitive Data: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/57.html and https://cve.bz/cve/capec/57?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.
How the attack unfolds
Explore
The attacker looks for a way in.
[Find a REST-style application that uses SSL] The adversary must first find a REST-style application that uses SSL to target. Because this attack is easier to carry out from inside of a server network, it is likely that an adversary could have inside knowledge of how services operate.
Experiment
They probe what they found.
[Insert a listener to sniff client-server communication] The adversary inserts a listener that must exist beyond the point where SSL is terminated. This can be placed on the client side if it is believed that sensitive information is being sent to the client as a response, although most often the listener will be placed on the server side to listen for client authentication information.
1 technique
- Run wireshark or tcpdump on a device that is on the inside of a firewall, load balancer, or router of a network and capture traffic after SSL has been terminated
Exploit
They carry out the attack.
[Gather information passed in the clear] If developers have not hashed or encrypted data sent in the sniffed request, the adversary will be able to read this data in the clear. Most commonly, they will now have a username or password that they can use to submit requests to the web service just as an authorized user
Prerequisites
Opportunity to intercept must exist beyond the point where SSL is terminated.
The adversary must be able to insert a listener actively (proxying the communication) or passively (sniffing the communication) in the client-server communication path.
Skills required
- Low skill
To insert a network sniffer or other listener into the communication stream
Consequences
| Impact | Affects | Note |
|---|---|---|
| Gain Privileges | Confidentiality, Access Control, Authorization |
Mitigations
Implementation: Implement message level security such as HMAC in the HTTP communication
Design: Utilize defense in depth, do not rely on a single security mechanism like SSL
Design: Enforce principle of least privilege
Weaknesses it exploits
- CWE-287 Improper Authentication
- CWE-300 Channel Accessible by Non-Endpoint
- CWE-693 Protection Mechanism Failure
Recent CVEs with these weaknesses
- 5.1CVE-2026-119012
Vulnerability of improper authentication in the DSoftBus module. Impact: Successful exploitation of this vulnerability will affect availability.
- 5.3CVE-2026-139894
A vulnerability was found in davila7 claude-code-templates up to 1.29.6. The affected element is an unknown function of the file cli-tool/src/claude-api-proxy.js of the component Claude API proxy. Performing a manipulation results in missi…
- 9.3CVE-2026-138670
A weakness has been identified in TOTOLINK X6000R up to 9.4.0cu.1458_B20250708. The impacted element is the function setStaticDhcpRules/arp_bind of the file /usr/sbin/shttpd. Executing a manipulation of the argument ip can lead to authenti…
- 9.1CVE-2026-137179
arduino-esp32 is an Arduino core for the ESP32, ESP32-S2, ESP32-S3, ESP32-C3, ESP32-C6 and ESP32-H2 microcontrollers. Prior to 3.3.12 and in 4.0.0-alpha1, WebServer::authenticate(const char *username, const char *password) parses an arbitr…
- 3.7CVE-2026-137029
Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to enclave-os-mini-wasm version 0.53.0 and enclave-cluster version 0.8.0, Enclave OS Mini's FIDO2 clone-detection guard skipped comparis…
- 9.8CVE-2026-137018
Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to base version 0.25.0 and vault version 0.33.0, Enclave OS Mini's verify_oidc_token function in builds without the wasm feature decoded…
- 5.5CVE-2026-138434
A vulnerability was found in Zylon PrivateGPT up to 1.0.1. Affected is the function authenticated of the file private_gpt/server/utils/auth.py of the component API Authentication. Performing a manipulation of the argument server.auth.enabl…
- 5.5CVE-2026-138429
A weakness has been identified in sosedoff pgweb up to 0.17.0. Impacted is the function RunQuery of the file pkg/api/routes.go of the component API. Executing a manipulation of the argument Query can lead to missing authentication. The att…
The newest records naming one of them. Each weakness's page lists them all.
Related attack patterns
- Part of
- CAPEC-157 Sniffing Attacks
Examples
The Rest service provider uses SSL to protect the communications between the service requester (client) to th…
The Rest service provider uses SSL to protect the communications between the service requester (client) to the service provider. In the instance where SSL is terminated before the communications reach the web server, it is very common in enterprise data centers to terminate SSL at a router, firewall, load balancer, proxy or other device, then the adversary can insert a sniffer into the communication stream and gather all the authentication tokens (such as session credentials, username/passwords combinations, and so on). The Rest service requester and service provider do not have any way to detect this attack.
MITRE's words, unchanged: CAPEC-57 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.