CVE-2023-48699 fastbots Eval Injection vulnerability
An attacker can achieve remote code execution by injecting Python code into the locators.ini file processed by the fastbots library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-48699?
CVE-2023-48699 is a high-severity code injection vulnerability in ubertidavide fastbots, published on 21 Nov 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
fastbots is a library for fast bot and scraper development using selenium and the Page Object Model (POM) design. Prior to version 0.1.5, 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`. In order to mitigate this issue, upgrade to fastbots version 0.1.5 or above.
Which versions are affected by CVE-2023-48699?
2 open source packages ship an affected version, including fastbots. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
fastbots PyPI | All versions | 0.1.5 |
fastbots PyPI | All versions | 0.1.5 |
Products include Ubertidavide Fastbots.
How do I fix CVE-2023-48699?
Upgrade fastbots to 0.1.5 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-48699 being exploited?
There is no known exploitation of CVE-2023-48699 in the wild and no public exploit code.
Sources
Also known as GHSA-vccg-f4gp-45x9.