Scan Report
5 /100
Barcode Generation And Recognition - 条码生成识别
按条形码查询商品名称、品牌、规格与产地等
条码查询工具,功能单一,代码清晰,仅通过环境变量读取API密钥并调用极速数据API查询商品信息,无恶意行为。
Safe to install
无需操作,可安全使用。建议锁定 requests 库版本以防止依赖漏洞。
Findings 1 items
| Severity | Finding | Location |
|---|---|---|
| Low | requests 库无版本锁定 | barcode.py:9 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | NONE | NONE | — | barcode.py - 无任何文件读写操作 |
| Network | READ | READ | ✓ Aligned | barcode.py:47 仅向 jisuapi.com 发送条码查询请求 |
| Environment | READ | READ | ✓ Aligned | barcode.py:56 仅读取 JISU_API_KEY |
| Shell | NONE | NONE | — | barcode.py - 无 subprocess 或 os.system 调用 |
1 High 4 findings
High API Key 疑似硬编码凭证
API_KEY="your_appkey_here" SKILL.md:22 Medium External URL 外部 URL
https://www.jisuapi.com/ SKILL.md:9 Medium External URL 外部 URL
https://www.jisuapi.com/api/barcode2/ SKILL.md:15 Medium External URL 外部 URL
https://api.jisuapi.com/barcode2/query barcode.py:14 File Tree
2 files · 7.5 KB · 241 lines Markdown 1f · 140L
Python 1f · 101L
├─
barcode.py
Python
└─
SKILL.md
Markdown
Dependencies 1 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
requests | * | pip | No | 无版本锁定,建议指定版本 |
Security Positives
✓ 代码结构清晰,单一职责原则执行良好
✓ 参数验证完整,有 JSON 解析和必需字段检查
✓ 错误处理完善,返回结构化错误信息
✓ 文档与代码行为完全一致,无阴影功能
✓ API 密钥仅用于调用外部服务,未外传
✓ 无文件操作,不会访问敏感路径