other
Warning
- Location
- scripts/pdd.sh:122
- Finding
- Generation of Unsupported Commercial Claims and Fabricated Social Proof<![CDATA[ ## Vulnerability Details **File Location**: `scripts/pdd.sh:122-131` **Additional Locations**: `scripts/pdd.sh:51, 91, 109, 112, 176-177, 296, 303` **Vulnerability Type**: Deceptive commercial content generation **Risk Level**: Medium ### Complete Code Snippet ```python pdd_prefixes = ["【百亿补贴】", "【限时秒杀】", "【工厂直发】", "【全网最低】", "【今日特价】", "【拼团价】"] { "style": "口碑型", "text": ( "📢 {product} | 10万+买家的共同选择!\n\n" "💬 买家真实评价:\n" " 「这个价格能买到这个品质,真的绝了」\n" " 「已经是第三次回购了,品质稳定」\n" " 「推荐给朋友,都说物超所值」\n" " 「比实体店便宜太多了,品质一样」\n\n" "📊 数据说话:\n" " · 累计销量 100000+\n" " · 好评率 98.6%\n" " · 复购率 45%\n\n" "🤝 我们的底气:\n" " 源头厂家 → 没有中间商 → 价格最实惠\n" " 严格品控 → 出厂必检 → 品质有保障\n\n" " 这就是为什么大家都选我们的{product}!" ).format(product=product), } ``` Related hard-coded scarcity and participation claims include: ```python "⏰ 仅剩最后50个名额!\n" "👥 已有2846人参与拼团\n\n" ``` ### Technical Analysis The generator emits factual-looking claims without accepting or validating evidence for them. These claims include precise sales totals, favorable-review rates, repeat-purchase rates, current participant counts, remaining availability, marketplace subsidy eligibility, lowest-price status, manufacturing equivalence, and product guarantees. Because these values are hard-coded, the same assertions can be generated for any arbitrary product. The output does not label the figures as examples or placeholders and does not require the merchant to confirm them before use. Consequently, ordinary use of the tool can produce unsupported advertising and fabricated social proof. This issue does not provide operating-system privileges or code-execution capabilities. It affects the integrity and compliance of commercial content generated by the skill. ### Attack Path 1. A user invokes a command such as `pdd.sh desc "Product"` or `pdd.sh group "Product" "29.9"`. 2. The script inserts hard-coded ...[truncated 1013 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Replace every hard-coded factual claim with an explicit placeholder, such as `[VERIFIED SALES COUNT]`, `[ACTUAL REVIEW RATE]`, or `[CONFIRMED INVENTORY]`. 2. Require merchants to supply factual values through command arguments or a validated input file. 3. Clearly mark all generated examples as drafts that must not be published without verification. 4. Add validation rules for: - Sales and participation counts. - Review and repeat-purchase rates. - Remaining inventory and time-limited offers. - Lowest-price or subsidy-program claims. - Manufacturing-equivalence and authenticity claims. - Refund, replacement, and compensation guarantees. 5. Reject generation of regulated or comparative claims unless the user confirms that supporting evidence is available. 6. Record the source and verification date for every factual claim used in generated copy. 7. Add compliance-oriented templates that describe product features without inventing metrics, testimonials, urgency, or guarantees. ]]>
