Lucene search

K
githubGitHub Advisory DatabaseGHSA-QMW8-3V4G-GWJ4
HistoryMar 03, 2021 - 1:52 a.m.

Prefix escape

2021-03-0301:52:05
CWE-20
GitHub Advisory Database
github.com
37
crafted url
escaped prefix
proxied server
patch
url
fastify-reply-from

CVSS2

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS3

10

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

EPSS

0.003

Percentile

70.7%

Impact

By crafting a specific URL, it is possible to escape the prefix of the proxied backend service.
If the base url of the proxied server is /pub/, a user expect that accessing /priv on the target service would not be possible. Unfortunately, it is.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

Patches

A patch have been submitted by Corey Farrell [email protected], the reporter.
All releases after v4.0.2 include the fix.

Workarounds

There are no workaround available.

For more information

If you have any questions or comments about this advisory:

Affected configurations

Vulners
Node
fastify-reply-from_projectfastify-reply-fromRange<4.0.2node.js
VendorProductVersionCPE
fastify-reply-from_projectfastify-reply-from*cpe:2.3:a:fastify-reply-from_project:fastify-reply-from:*:*:*:*:*:node.js:*:*

CVSS2

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS3

10

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

EPSS

0.003

Percentile

70.7%