Type: Code Injection
Product: bisheng
Affected versions: 2.3.0–2.4.0-beta1
Affected component: src/backend/bisheng/api/v1/validate.py:post_validate_code
Suggested CWE: CWE-94 (Code Injection)
Reference: dataelement/bisheng#1995
bisheng 2.3.0, 2.4.0, and 2.4.0-beta1 is vulnerable to Code Injection in src/backend/bisheng/api/v1/validate.py.
Condensed from the authorized local validation used for the original report; local filesystem paths are replaced with <local-path>.
=== STEP 1: Setup Environment ===
- Clone repository: git clone https://github.com/dataelement/bisheng.git
- Checkout vulnerable version: git checkout v2.4.0-beta1
- Navigate to backend: cd src/backend
- Install dependencies: pip install -r requirements.txt && pip install -e . === STEP 2: Start bisheng Service ===
- Run: python -m bisheng.main
- Wait for: "Application startup complete" message
- Service runs on: http://localhost:7860
=== STEP 3: Verify Endpoint Exists ===
curl -X POST http://localhost:7860/api/v1/validate/code
-H "Content-Type: application/json"
-d '{"code": "def test(): pass"}' Expected: {"status_code": 200, "data": {"imports": {"errors": []}, "function": {"errors": []}}} …
Ro1ME