Advisory

GHSA-vccg-f4gp-45x9

Also known as: CVE-2023-48699

Summary

Eval Injection in fastbots

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-11-21 22:18 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

fastbots

PyPI · All systems

Affected

  • introduced 0, fixed 0.1.5 (ecosystem)

Fixed versions

0.1.5

Fix

  • Fixed version 0.1.5
    pip install --upgrade fastbots==0.1.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences