Eval Injection Affecting fastbots package, versions [,0.1.5)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.84% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Eval Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-FASTBOTS-6071674
  • published22 Nov 2023
  • disclosed21 Nov 2023
  • creditDavide Uberti

Introduced: 21 Nov 2023

CVE-2023-48699  (opens in a new tab)
CWE-95  (opens in a new tab)

How to fix?

Upgrade fastbots to version 0.1.5 or higher.

Overview

fastbots is an A simple library for fast bot and scraper development using selenium and the POM (Page Object Model) design.

Affected versions of this package are vulnerable to Eval Injection via the __locator__ function. An attacker can execute arbitrary code by modifying the locators.ini locator file with Python code, which is then executed without proper validation.

PoC

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

References

CVSS Base Scores

version 3.1