CVE-2023-54345
Frappe Framework ERPNext 13.4.0 contains a sandbox escape …
Frappe Framework ERPNext 13.4.0 contains a sandbox escape vulnerability in RestrictedPython that allows authenticated users with System Manager role to execute arbitrary code by exploiting frame introspection. Attackers can create a server script via the /app/server-script endpoint and access the gi_frame attribute to traverse the call stack and invoke os.popen to execute system commands.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- erpnext.org
- frappeframework.com/docs/v13/user/en/desk/scripting/server-script
- gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6
- github.com/frappe/frappe/
- github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42
- ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/
- www.exploit-db.com/exploits/51580
- www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution
- nvd.nist.gov/vuln/detail/CVE-2023-54345
- cve.org/CVERecord?id=CVE-2023-54345
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.