GitHub Advisoryadvisory · PyPI

GHSA-vccg-f4gp-45x9 Eval Injection in fastbots

HIGH Published 2023-11-21 Modified 2023-11-22 Official page ↗
Aliases
CVE-2023-48699
Ecosystem
PyPI
Packages
fastbots
Severity
High
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94, CWE-95
Reviewed
2023-11-21

Affected packages

• PyPI fastbots: < 0.1.5 → fixed in 0.1.5

Description

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: ```python 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

Related

Alias · CVE (1)

  • CVE-2023-48699 fastbots is a library for fast bot and scraper development using selenium and the Page Object Model (POM) design. vulnerability

Weakness · CWE (2)

  • CWE-94 Improper Control of Generation of Code weakness
  • CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code weakness

References