扫描报告
5 /100
Bank Card Recognition OCR - 银行卡识别
OCR bank card image, returns card number, bank name, and card type via JisuAPI
Bank card OCR skill that safely calls a declared third-party API with proper path traversal guards and no credential exfiltration.
可以安装
No action needed. Consider pinning the `requests` dependency to a specific version for reproducible builds.
安全发现 1 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 低危 | Unpinned `requests` dependency | bankcardcognition.py:14 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 文件系统 | READ | READ | ✓ 一致 | SKILL.md:38 — path/image/file fields for local image reading; bankcardcognition.… |
| 网络访问 | READ | READ | ✓ 一致 | SKILL.md:2 — external JisuAPI service declared; bankcardcognition.py:17 — single… |
| 命令执行 | NONE | NONE | — | No subprocess, os.system, or shell execution found |
| 环境变量 | READ | READ | ✓ 一致 | SKILL.md:8 — requires JISU_API_KEY; bankcardcognition.py:118 — reads os.getenv('… |
1 高危 4 项发现
高危 API 密钥 疑似硬编码凭证
API_KEY="your_appkey_here" SKILL.md:21 中危 外部 URL 外部 URL
https://www.jisuapi.com/ SKILL.md:9 中危 外部 URL 外部 URL
https://www.jisuapi.com/api/bankcardcognition/ SKILL.md:16 中危 外部 URL 外部 URL
https://api.jisuapi.com/bankcardcognition/recognize bankcardcognition.py:17 目录结构
2 文件 · 10.1 KB · 309 行 Python 1f · 163L
Markdown 1f · 146L
├─
bankcardcognition.py
Python
└─
SKILL.md
Markdown
依赖分析 1 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
requests | unpinned | import | 否 | No version constraint; consider pinning to a specific release |
安全亮点
✓ Path traversal protection: _normalize_local_path blocks absolute paths and '..' sequences, restricting reads to CWD and subdirectories
✓ No credential exfiltration: JISU_API_KEY is read from the environment and sent only to the declared JisuAPI endpoint
✓ Single, declared network destination: only POSTs to api.jisuapi.com/bankcardcognition/recognize
✓ No shell execution, no eval, no subprocess, no base64-to-bash patterns
✓ No hidden instructions, no obfuscation, no suspicious HTML comments
✓ JSON input validation: checks type and structure before processing
✓ Clean error handling with structured error responses