PT-2021-4674 · Unknown · Fastify-Static

Drstrnegth

·

Published

2021-10-06

·

Updated

2021-10-20

·

CVE-2021-22964

CVSS v2.0

9.0

High

VectorAV:N/AC:L/Au:N/C:P/I:P/A:C
Name of the Vulnerable Software and Affected Versions fastify-static versions 4.2.4 through 4.4.0
Description A redirect issue in the fastify-static module allows remote attackers to redirect Mozilla Firefox users to arbitrary websites via a double slash // followed by a domain. For example, http://localhost:3000//a//youtube.com/%2e%2e%2f%2e%2e. A DOS issue is possible if the URL contains invalid characters, such as curl --path-as-is "http://localhost:3000//^/..". The issue affects fastify-static applications that set the redirect: true option, which is false by default.
Recommendations For fastify-static versions 4.2.4 through 4.4.0, update to version 4.4.1 to resolve the issue. As a temporary workaround, consider setting the redirect option to false until the update is applied. Alternatively, sanitize the input URLs using the rewriteUrl server option if updating is not an option.

Exploit

Fix

Resource Exhaustion

Open Redirect

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2021-05367
CVE-2021-22964
GHSA-PGH6-M65R-2RHQ

Affected Products

Fastify-Static