Lucene search

K
githubGitHub Advisory DatabaseGHSA-HHR9-RH25-HVF9
HistoryJul 20, 2023 - 2:54 p.m.

Feathers socket handler allows abusing implicit toString

2023-07-2014:54:30
CWE-754
GitHub Advisory Database
github.com
4
feathers
socket handler
implicit conversion
nodejs
patch
workaround
upgrade
changelog

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

0.001 Low

EPSS

Percentile

29.6%

Impact

Feathers socket handler did not catch invalid string conversion errors like:

const message = `${{ toString: '' }}`

Causing the NodeJS process to crash when sending an unexpected Socket.io message like

socket.emit('find', { toString: '' })

Patches

A fix has been released in

  • v5.0.8 via #3241
  • v4.5.18 via #3242

Workarounds

Since it is in the core Socket handling code upgrading to the latest version is necessary.

References

Affected configurations

Vulners
Node
feathersjsfeathersRange5.0.7
OR
feathersjsfeathersRange4.5.17
OR
feathersjsfeathersRange5.0.7
OR
feathersjsfeathersRange4.5.17

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

0.001 Low

EPSS

Percentile

29.6%

Related for GHSA-HHR9-RH25-HVF9