Lucene search

K
githubGitHub Advisory DatabaseGHSA-MJ24-GPW7-23M9
HistoryOct 10, 2023 - 6:28 p.m.

Denial of service vulnerability on creating a Launch with too many recursively nested elements in reportportal

2023-10-1018:28:11
CWE-770
GitHub Advisory Database
github.com
9
denial of service
vulnerability
nested elements
reportportal
database instability
patches
software
workarounds
long paths
indexing limit

CVSS3

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

EPSS

0.001

Percentile

39.2%

Impact

ReportPortal database becomes unstable and reporting almost fully stops except for small launches with approximately 1 test inside when the test_item.path field is exceeded the allowable “ltree” field type indexing limit (path length>=120 approximately, recursive nesting of the nested steps).

REINDEX INDEX path_gist_idx and path_idx aren’t helped.

Patches

The problem was fixed in service-api module of version 5.10.0 (product release 23.2), where the maximum number of nested elements were programmatically limited.

Workarounds

After deletion of the data with long paths, and reindexing both indexes (path_gist_idx and path_idx), the database becomes stable and ReportPortal is working properly.

Affected configurations

Vulners
Node
com.epam.reportportalservice-apiRange<5.10.0
VendorProductVersionCPE
com.epam.reportportalservice-api*cpe:2.3:a:com.epam.reportportal:service-api:*:*:*:*:*:*:*:*

CVSS3

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

EPSS

0.001

Percentile

39.2%