T01 · Skill Instruction Hijacking
- Location
scripts/opportunity_notify.py:72- Finding
Untrusted remote buyer content is embedded directly into agent-facing operational notifications
- Content
View full analysis
str: score = opp.get('match_score', 0) score_desc = "高度匹配" if score >= 0.8 else "匹配" if score >= 0.5 else "可能匹配" msg = f""" 🎯 发现新商机 | New Business Opportunity ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📋 需求ID: {opp.get('post_id')} 👤 买家: {opp.get('buyer_name', '未知')} 📍 区域: {opp.get('buyer_region', '未知')} 📦 匹配产品: {opp.get('product')} 📊 匹配度: {score:.0%} ({score_desc}) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📝 需求内容: {opp.get('content', '')[:300]}... ✅ 发货状态: {opp.get('ship_status', '可发货')} 🔑 匹配关键词: {', '.join(opp.get('matched_keywords', []))} """ ``` ### Technical Analysis Buyer posts are retrieved from an external API and their `content` property is copied directly into an agent-facing notification. Truncation limits length but does not establish a security boundary. The code does not quote or encode the content as untrusted dat ...[truncated 1740 chars]- Remediation
View remediation
