2023-02-16 10:56:36 +00:00
|
|
|
id: nextjs-redirect
|
|
|
|
|
|
|
|
info:
|
2023-03-30 19:48:59 +00:00
|
|
|
name: Next.js <1.2.3 - Open Redirect
|
2023-02-16 10:56:36 +00:00
|
|
|
author: DhiyaneshDk
|
|
|
|
severity: medium
|
2023-03-30 19:48:59 +00:00
|
|
|
description: Next.js contains an open redirect via “_next/image” due to improper path parsing.
|
|
|
|
remediation: Upgrade to Next.js version 1.2.3 or higher.
|
2023-02-16 10:56:36 +00:00
|
|
|
reference:
|
2023-03-30 19:48:59 +00:00
|
|
|
- https://github.com/netlify/netlify-ipx/security/advisories/GHSA-9jjv-524m-jm98
|
2023-02-16 10:56:36 +00:00
|
|
|
- https://samcurry.net/universal-xss-on-netlifys-next-js-library/
|
2023-03-30 19:48:59 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
|
|
|
|
cvss-score: 6.1
|
|
|
|
cwe-id: CWE-601
|
2023-02-16 10:56:36 +00:00
|
|
|
metadata:
|
2023-04-28 08:11:21 +00:00
|
|
|
max-request: 1
|
2023-02-16 10:56:36 +00:00
|
|
|
shodan-query: html:"/_next/static"
|
|
|
|
tags: redirect,nextjs
|
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2023-02-16 10:56:36 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- '{{BaseURL}}/_next/image?url=/\/\interact.sh/&q=100&w=128&h=128'
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- 'Location: /\/\/interact.sh'
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 308
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 490a00463044022014505ee889ac2af82f3f60a40140ff036fdb8a7f73f81d4586e9742fe31188f2022008e1b2d024f235583c97486ed9da49f8cca6ac3f73fd70cb132fe319aa137843:922c64590222798bb761d5b6d8e72950
|