CVE-2024-35374: Mocodo vulnerable to SQL injection in `/web/generate.php`
Mocodo Mocodo Online 4.2.6 and below does not properly sanitize the sqlcase input field in /web/generate.php, allowing remote attackers to execute arbitrary SQL commands and potentially command injection, leading to remote code execution (RCE) under certain conditions.
Published May 28, 2024
Affected packages
mocodo
- Ecosystem
- PyPI
- Affected
- <= 4.2.6
- Fixed in
- 4.2.7
- Check
pip show mocodo
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Mocodo Mocodo Online 4.2.6 and below does not properly sanitize the sql_case input field in /web/generate.php, allowing remote attackers to execute arbitrary SQL commands and potentially command injection, leading to remote code execution (RCE) under certain conditions.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-35374
- https://github.com/laowantong/mocodo/commit/f9368df28518b6c4a92fd207c260f1978ec34d6e
- https://chocapikk.com/posts/2024/mocodo-vulnerabilities
- https://github.com/laowantong/mocodo/blob/11ca879060a68e06844058cd969c6379214cc2a8/web/generate.php#L104-L158
- https://github.com/advisories/GHSA-j6cv-98jx-mrwr
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
