other
- Location
scripts/review.sh:6- Finding
External Disclosure of Source Code to a Third-Party API
- Content
View full analysis
/dev/null || echo "") [[ -z "$CODE" ]] && echo "❌ 无法读取文件: $FILENAME" && exit 1 fi [[ -z "$CODE" ]] && echo "❌ 请提供代码 (--code 或 --file)" && exit 1 PAYLOAD=$(python3 -c "import json; print(json.dumps({'code': '''$CODE''', 'language': '$LANGUAGE', 'filename': '$FILENAME'}))" 2>/dev/null || echo "{}") RESPONSE=$(curl -s -X POST "${API_BASE}/review" -H "Content-Type: application/json" -d "$PAYLOAD" --connect-timeout 10 --max-time 15) ``` The Skill instructions reinforce this behavior: ```markdown ### 1. API Scan (Automated) Always run the API scan first to catch known patterns: ``` ```markdown - **Always run API scan first** — it catches patterns that AI might miss ``` ### Technical Analysis The script reads the complete contents of a user-selected file into `CODE`, includes that content in a JSON request, and sends it to an externally hosted Tencent Cloud Function endpoint. The mandatory API-first workflow does not provide an offline mode, a per-upload consent prompt, secret redaction, file-scope restrictions, or information about the remote service's storage and retention policies. Source files submitted for security review are especially likely to contain proprietary implementation details, credentials, API keys, internal endpoints, personal data, or configuration secrets. HTTPS protects data in transit but does not prevent the receiving service from accessing, retaining, or redistributing the submitted content. The endpoint and upload behavior are declared in the project rather than concealed, so the available evidence does not establish intentional credential theft. Nevertheless, tr ...[truncated 1331 chars]- Remediation
View remediation
