GHSA-vccg-f4gp-45x9

Suggest an improvement
Source
https://github.com/advisories/GHSA-vccg-f4gp-45x9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-vccg-f4gp-45x9/GHSA-vccg-f4gp-45x9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vccg-f4gp-45x9
Aliases
  • CVE-2023-48699
Related
  • CVE-2023-48699
Published
2023-11-21T22:18:22Z
Modified
2024-02-16T08:14:15.553838Z
Severity
  • 8.4 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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

Database specific
{
    "nvd_published_at": "2023-11-21T23:15:08Z",
    "cwe_ids": [
        "CWE-94",
        "CWE-95"
    ],
    "github_reviewed_at": "2023-11-21T22:18:22Z",
    "github_reviewed": true,
    "severity": "HIGH"
}
References

Affected packages

PyPI / fastbots

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.1.5

Affected versions

0.*
0.1.0
0.1.1
0.1.2
0.1.3
0.1.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-vccg-f4gp-45x9/GHSA-vccg-f4gp-45x9.json"