Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CAPEC-466:Leveraging Active Adversary in the Middle Attacks to Bypass Same Origin Policy
Attack Pattern ID:466
Version:v3.9
Attack Pattern Name:Leveraging Active Adversary in the Middle Attacks to Bypass Same Origin Policy
Abstraction:Standard
Status:Draft
Likelihood of Attack:
Typical Severity:Medium
DetailsContent HistoryRelated WeaknessesReports
▼Description
An attacker leverages an adversary in the middle attack (CAPEC-94) in order to bypass the same origin policy protection in the victim's browser. This active adversary in the middle attack could be launched, for instance, when the victim is connected to a public WIFI hot spot. An attacker is able to intercept requests and responses between the victim's browser and some non-sensitive website that does not use TLS.
▼Extended Description

When an attacker intercepts a response bound to the victim, an attacker adds an iFrame (which is possibly invisible) to the response referencing some domain with sensitive functionality and forwards the response to the victim. The victim's browser than automatically initiates an unauthorized request to the site with sensitive functionality. The same origin policy would prevent making these requests to a site other than the one from which the Java Script came, but the attacker once again uses active adversary in the middle to intercept these automatic requests and redirect them to the domain / service with sensitive functionality. Any persistent cookies that the victim has in their browser would be used for these unauthorized requests. The attacker thus actively directs the victim to a site with sensitive functionality. When the site with sensitive functionality responds back to the victim's request, an active adversary in the middle attacker intercepts these responses, injects their own malicious Java Script into these responses, and forwards to the victim's browser. In the victim's browser, that Java Script executes under the restrictions of the site with sensitive functionality and can be used to continue to interact with the sensitive site. So an attacker can execute scripts within the victim's browser on any domains the attacker desires. The attacker is able to use this technique to steal cookies from the victim's browser for whatever site the attacker wants. This applies to both persistent cookies and HTTP only cookies (unlike traditional XSS attacks). An attacker is also able to use this technique to steal authentication credentials for sites that only encrypt the login form, but do not require a secure channel for the initial request to get to the page with the login form. Further the attacker is also able to steal any autocompletion information. This attack pattern can also be used to enable session fixation and cache poisoning attacks. Additional attacks can be enabled as well.

▼Alternate Terms
▼Relationships
NatureTypeIDName
ChildOfM94Adversary in the Middle (AiTM)
Nature: ChildOf
Type: Meta
ID: 94
Name: Adversary in the Middle (AiTM)
▼Execution Flow
▼Prerequisites
The victim and the attacker are both in an environment where an active adversary in the middle attack is possible (e.g., public WIFI hot spot)The victim visits at least one website that does not use TLS / SSL
▼Skills Required
Low

Ability to intercept and modify requests / responses


Medium

Ability to create iFrame and JavaScript code that would initiate unauthorized requests to sensitive sites from the victim's browser


Medium

Solid understanding of the HTTP protocol

▼Resources Required
▼Indicators
▼Consequences
ScopeLikelihoodImpactNote
ConfidentialityN/ARead DataN/A
AuthorizationN/AExecute Unauthorized CommandsN/A
Scope: Confidentiality
Likelihood: N/A
Impact: Read Data
Note: N/A
Scope: Authorization
Likelihood: N/A
Impact: Execute Unauthorized Commands
Note: N/A
▼Mitigations
Design: Tunnel communications through a secure proxy
Design: Trust level separation for privileged / non privileged interactions (e.g., two different browsers, two different users, two different operating systems, two different virtual machines)
▼Example Instances
▼Related Weaknesses
IDName
CWE-300Channel Accessible by Non-Endpoint
ID: CWE-300
Name: Channel Accessible by Non-Endpoint
▼Taxonomy Mappings
Taxonomy NameEntry IDEntry Name
▼Notes
▼References
Reference ID: REF-403
Title: Active Man in the Middle Attacks
Author: Roi Saltzman, Adi Sharabani
Publication:
Publisher:IBM Rational Application Security Group
Edition:
URL:http://blog.watchfire.com/wfblog/2009/02/active-man-in-the-middle-attacks.html
URL Date:
Day:02
Month:02
Year:2009
Details not found