Skip to content

Commit

Permalink
add mxss
Browse files Browse the repository at this point in the history
  • Loading branch information
xanhacks committed May 3, 2024
1 parent 8491296 commit 536496c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions content/docs/client-side/xss.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,27 @@ console.log(valids);
> Inspired by the book *Javascript for hackers - Gareth Heyes*.
{{< /details >}}
## Mutation XSS

- [Bypassing Your Defense: Mutation XSS](https://aszx87410.github.io/beyond-xss/en/ch2/mutation-xss/)
- [mXSS cheatsheet](https://sonarsource.github.io/mxss-cheatsheet/)


The following HTML code will be "fixed" by the browser at runtime. Original HTML:

```html
<table><h1>hello</h1></table>
```

Displayed HTML:

```html
<h1>hello</h1>
<table></table>
```

This behavior of "HTML strings being changed by the browser during rendering" is called mutation. And the XSS achieved by exploiting this behavior is naturally called mutation XSS or mXSS.

## DOS

### Cookie bombing
Expand Down

0 comments on commit 536496c

Please sign in to comment.