Skip to content

Commit 4405bee

Browse files
authored
Fix spellings (#157)
* Update framing-isolation.md * Update navigation-isolation.md * Update resource-isolation.md * Update same-site-cookies.md * Update connection-pool.md * Update performance-api.md * Update navigations.md * Update css-injection.md * Update error-events.md * Update cache-probing.md * Update cache-probing.md * Update css-tricks.md * Update css-tricks.md * Update css-tricks.md
1 parent 796fe41 commit 4405bee

11 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎content/docs/attacks/cache-probing.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ It's also possible to remove resources from cache without server errors. For exa
6060

6161
## CORS error on Origin Reflection misconfiguration
6262

63-
Origin reflection is a behavior in which a globally accessible resource is provided with a [Access-Control-Allow-Orign (ACAO)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin) header whose value reflects the origin that initialized the request. This can be considered as CORS misconfiguration [^5] and can be used to detect whether the resource exists in the browser cache.
63+
Origin reflection is a behavior in which a globally accessible resource is provided with a [Access-Control-Allow-Origin (ACAO)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin) header whose value reflects the origin that initialized the request. This can be considered as CORS misconfiguration [^5] and can be used to detect whether the resource exists in the browser cache.
6464

6565
{{< hint info >}}
6666
For example, Flask framework [promotes](https://flask-cors.readthedocs.io/en/latest/api.htm) origin reflection as the default behavior.
6767
{{< /hint >}}
6868

6969
If a resource hosted on `server.com` is requested from `target.com` then the origin could be reflected in the response headers as: `Access-Control-Allow-Origin: target.com`. If the resource is cached, this information is stored together with the resource in the browser cache. With that, if `attacker.com` tries to fetch the same resource there are two possible scenarios:
7070
- The resource is not in cache: the resource could be fetched and stored together with the `Access-Control-Allow-Origin: attacker.com` header.
71-
- The resource was already in cache: fetch attempt will try to fetch the resource from the cache but it will also generate a CORS error due to the ACAO header value mismatch with the requesting origin (`target.com` origin was expected but `attacker.com` was provided). Here below is provided an example code snippet epxloting this vulnerability to infer the cache status of the victim's browser. [Run demo](https://xsinator.com/testing.html#Cache%20Leak%20(CORS))
71+
- The resource was already in cache: fetch attempt will try to fetch the resource from the cache but it will also generate a CORS error due to the ACAO header value mismatch with the requesting origin (`target.com` origin was expected but `attacker.com` was provided). Here below is provided an example code snippet exploiting this vulnerability to infer the cache status of the victim's browser. [Run demo](https://xsinator.com/testing.html#Cache%20Leak%20(CORS))
7272
```javascript
7373
// The function simply takes a url and fetches it in CORS mode.
7474
// If the fetch raises an error, it will be a CORS error due to the

‎content/docs/attacks/css-injection.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Larger text dimensions can result in the scroll bar being shown,
2626
This scroll bar can have a custom style such as `background: url()` so that it makes a request to an attacker-controlled server when shown. [^3]
2727

2828
## Defense
29-
- Put attacker controled content in its own document this can be done using a iframe with the srcdoc attribute.
30-
Optionaly include the sandbox attbute to isolate the content into its own origin.
29+
- Put attacker controlled content in its own document this can be done using a iframe with the srcdoc attribute.
30+
Optionally include the sandbox attribute to isolate the content into its own origin.
3131
- Use a CSS inliner so global styles get converted.
3232

3333
| [SameSite Cookies (Lax)]({{< ref "/docs/defenses/opt-in/same-site-cookies.md" >}}) | [COOP]({{< ref "/docs/defenses/opt-in/coop.md" >}}) | [Framing Protections]({{< ref "/docs/defenses/opt-in/xfo.md" >}}) | [Isolation Policies]({{< ref "/docs/defenses/isolation-policies" >}}) |

‎content/docs/attacks/css-tricks.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ CSS can be used to trick a user into exposing information such as embedded pixel
2020

2121
## Retrieving user's history
2222
Using the CSS [`:visited`](https://developer.mozilla.org/en-US/docs/Web/CSS/:visited) selector, it’s possible to apply a different style for URLs that have been visited.
23-
Previously it was possible to use [`getComputedStyle()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle) to detect this difference, but now browsers prevent this by always returing values as if the link was visted and limiting what styles can be applyed using the selector. [^changes-1]
23+
Previously it was possible to use [`getComputedStyle()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle) to detect this difference, but now browsers prevent this by always returning values as if the link was visited and limiting what styles can be applied using the selector. [^changes-1]
2424
So, it may be needed to trick the user into clicking an area that the CSS has affected.
2525
This can be done using [`mix-blend-mode`](https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode). [^blend-mode]
2626
There are also ways to do it without user interaction such as by abusing render timings.
@@ -32,8 +32,8 @@ Multiple bugs were reported about this issue: [^bug-1](https://bugs.chromium.org
3232
## Evil Captcha
3333
Using CSS, it’s possible to take an embed out of context.
3434
An example of this is pretending it’s a captcha as seen in [^leak-2]
35-
This works by setting the width and hight of an embed so that only the target characters are shown,
36-
this may use multiple embeds to change the order of the characters being displayed so that its harder for a user to know what infomation they're providing.
35+
This works by setting the width and height of an embed so that only the target characters are shown,
36+
this may use multiple embeds to change the order of the characters being displayed so that its harder for a user to know what information they're providing.
3737

3838
## Abusing autocomplete
3939
If a website uses text inputs and does not opt-out of [autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) using ```autocomplete="off"``` it may be possible to leak data such as email addresses by tricking the user into pressing the keys to navigate the autocomplete UI for a javascript focused text input.

‎content/docs/attacks/error-events.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ probeError('https://google.com/');
4848

4949
## Defense
5050

51-
The mitigation of this XS-Leak often varies depending on how applications handle certain resources. The general approach is to adopt consistent behaviors whereever possible. In specific scenarios, applications might use [Subresource Protections]({{< ref "/docs/defenses/design-protections/subresource-protections.md" >}}) to prevent attackers from predicting a URL and going forward with an attack.
51+
The mitigation of this XS-Leak often varies depending on how applications handle certain resources. The general approach is to adopt consistent behaviors wherever possible. In specific scenarios, applications might use [Subresource Protections]({{< ref "/docs/defenses/design-protections/subresource-protections.md" >}}) to prevent attackers from predicting a URL and going forward with an attack.
5252

5353
Finally, without applying bigger changes in the logic of applications, generic web platform security features can be deployed to mitigate this XS-Leak at a larger scale.
5454

‎content/docs/attacks/navigations.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ setTimeout(() => {
120120
## Server-Side Redirects
121121

122122
### Max redirects
123-
When a page initiates a chain of 3XX redirects, browsers limit the maximum number of redirects to 20 [^spec-redirects]. This can be used to detect the exact number of redirects occured for a cross-origin page by following the below approach [^redirect-leak]:
123+
When a page initiates a chain of 3XX redirects, browsers limit the maximum number of redirects to 20 [^spec-redirects]. This can be used to detect the exact number of redirects occurred for a cross-origin page by following the below approach [^redirect-leak]:
124124
1. As a malicious website, initiate 19 redirects and make the final 20th redirect to the attacked page.
125-
2. If the browser threw a network error, at least one redirect occured. Repeat the process with 18 redirects.
125+
2. If the browser threw a network error, at least one redirect occurred. Repeat the process with 18 redirects.
126126
3. If the browser didn't threw a network error, the number of redirects is known as `20 - issued_redirects`.
127127

128128
*To detect an error one can use [Error Events]({{< ref "/docs/attacks/error-events.md" >}})*

‎content/docs/attacks/timing-attacks/connection-pool.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async function isConnected2(url, max = 50) {
106106
await isConnected2('https://example.com/404');
107107
```
108108

109-
## Skipping dependences
109+
## Skipping dependencies
110110
If a connection is exhausted or there’s to many sockets open then requests for code from a host may fail resulting in different behaviour.
111111
The following examples are by design a DoS attack for both the client and server.
112112
Open a lot of sockets: (ERR_CONNECTION_CLOSED, ERR_INSUFFICIENT_RESOURCES)

‎content/docs/attacks/timing-attacks/performance-api.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ await isFrameBlocked('https://example.org');
6868
# Detecting cached resources
6969

7070
With the `performance` API it is possible to detect whether a resource was cached or not.
71-
Unless [Cross-Origin Read Blocking]({{< ref "../../defenses/secure-defaults/corb.md" >}}) is triggered (resource is html) the resource will get cached in the processs of the check. [Run demo](https://xsinator.com/testing.html#Duration%20Redirect%20Leak)
71+
Unless [Cross-Origin Read Blocking]({{< ref "../../defenses/secure-defaults/corb.md" >}}) is triggered (resource is html) the resource will get cached in the process of the check. [Run demo](https://xsinator.com/testing.html#Duration%20Redirect%20Leak)
7272
```javascript
7373
async function ifCached2(url) {
7474
let href = new URL(url).href;

‎content/docs/defenses/isolation-policies/framing-isolation.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ When deployed together with [Resource Isolation Policy]({{< ref "resource-isolat
2222

2323
## Implementation with Fetch Metadata
2424

25-
The below snippet showcases an example implemention of the Framing Isolation Policy by an application:
25+
The below snippet showcases an example implementation of the Framing Isolation Policy by an application:
2626

2727
```py
2828
# Reject cross-site requests to protect from CSRF, XSSI, XS-Leaks, and other bugs

‎content/docs/defenses/isolation-policies/navigation-isolation.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Instead of rejecting all cross-site interactions, the user could be prompted to
1616

1717
## Implementation with Fetch Metadata
1818

19-
The below snippet showcases an example implemention of the Navigation Isolation Policy with the use of [Fetch Metadata]({{< ref "../opt-in/fetch-metadata.md">}}) headers [^secmetadata]:
19+
The below snippet showcases an example implementation of the Navigation Isolation Policy with the use of [Fetch Metadata]({{< ref "../opt-in/fetch-metadata.md">}}) headers [^secmetadata]:
2020

2121
```py
2222
# Reject cross-site requests to protect from clickjacking, XS-Leaks, and other bugs

‎content/docs/defenses/isolation-policies/resource-isolation.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Resource Isolation Policy prevents external websites from requesting your resour
1212

1313
## Implementation with Fetch Metadata
1414

15-
The below snippet showcases an example implemention of the Resource Isolation Policy with the use of [Fetch Metadata]({{< ref "../opt-in/fetch-metadata.md">}}) headers:
15+
The below snippet showcases an example implementation of the Resource Isolation Policy with the use of [Fetch Metadata]({{< ref "../opt-in/fetch-metadata.md">}}) headers:
1616

1717
```py
1818
# Reject cross-origin requests to protect from , XSSI, XS-Leaks, and other bugs

0 commit comments

Comments
 (0)