Lucene search

K
osvGoogleOSV:GHSA-VCCG-F4GP-45X9
HistoryNov 21, 2023 - 10:18 p.m.

Eval Injection in fastbots

2023-11-2122:18:22
Google
osv.dev
8
eval injection
fastbots
locators.ini
python code
rce
vulnerability
upgrade
patch
validation

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

7.5 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

35.7%

Impact

An attacker could modify the locators.ini locator file with python code that without proper validation it’s executed and it could lead to rce. The vulnerability is in the function def locator(self, locator_name: str) in page.py. The vulnerable code that load and execute directly from the file without validation it’s:

 return eval(self._bot.locator(self._page_name, locator_name))

Patches

In order to mitigate this issue it’s important to upgrade to fastbots version 0.1.5 or above.

References

Merge that fix also this issue

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

7.5 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

35.7%

Related for OSV:GHSA-VCCG-F4GP-45X9