Dark Mode
Capec-57 Detail
Utilizing REST's Trust in the System Resource to Obtain Sensitive Data
Detailed Communications Software Likelihood: Medium Typical Severity: Very High
Parents: 157
Threats: T60 T65 T98 T291
| External ID | Source | Link | Description |
|---|---|---|---|
| CAPEC-57 | capec | https://capec.mitre.org/data/definitions/57.html | |
| CWE-300 | cwe | http://cwe.mitre.org/data/definitions/300.html | |
| CWE-287 | cwe | http://cwe.mitre.org/data/definitions/287.html | |
| CWE-693 | cwe | http://cwe.mitre.org/data/definitions/693.html | |
| T1040 | ATTACK | https://attack.mitre.org/wiki/Technique/T1040 | Network Sniffing |
Explore
-
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
-
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.
| Techniques |
|---|
| 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
-
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
- 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.
Not present
| Low |
|---|
| To insert a network sniffer or other listener into the communication stream |
| Authorization | Access Control | Confidentiality |
|---|---|---|
| Gain Privileges | Gain Privileges | Gain Privileges |
- 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.