Lucene search

K
githubGitHub Advisory DatabaseGHSA-MG3M-F475-28HV
HistoryDec 01, 2021 - 6:28 p.m.

Path Traversal in @backstage/plugin-scaffolder-backend

2021-12-0118:28:51
CWE-22
GitHub Advisory Database
github.com
33
path traversal
@backstage/plugin-scaffolder-backend
vulnerability
version 0.15.14
access restriction
scaffolder templates
backstage repository
backstage readme

CVSS2

5.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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

CVSS3

8.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

LOW

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

EPSS

0.001

Percentile

32.5%

Impact

A malicious actor with write access to a registered scaffolder template is able to manipulate the template in a way that writes files to arbitrary paths on the scaffolder-backend host instance.

This vulnerability can in some situation also be exploited through user input when executing a template, meaning you do not need write access to the templates. This method will not allow the attacker to control the contents of the injected file however, unless the template is also crafted in a specific way that gives control of the file contents.

Patches

This vulnerability is fixed in version 0.15.14 of the @backstage/plugin-scaffolder-backend.

Workarounds

This attack is mitigated by restricting access and requiring reviews when registering or modifying scaffolder templates.

For more information

If you have any questions or comments about this advisory:

Affected configurations

Vulners
Node
backstageplugin-scaffolder-backendRange<0.15.14
VendorProductVersionCPE
backstageplugin-scaffolder-backend*cpe:2.3:a:backstage:plugin-scaffolder-backend:*:*:*:*:*:*:*:*

CVSS2

5.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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

CVSS3

8.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

LOW

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

EPSS

0.001

Percentile

32.5%

Related for GHSA-MG3M-F475-28HV