Eval Injection in fastbots
High severity
GitHub Reviewed
Published
Nov 21, 2023
in
ubertidavide/fastbots
•
Updated Nov 30, 2023
Description
Published to the GitHub Advisory Database
Nov 21, 2023
Reviewed
Nov 21, 2023
Published by the National Vulnerability Database
Nov 21, 2023
Last updated
Nov 30, 2023
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:
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
References