Scan Report
5 /100
daily-astro
西方星座每日运势 — 12星座今日运程、幸运元素、爱情事业财运指数
纯文本生成工具,代码结构清晰,无恶意行为,无敏感操作,仅存在轻微配置瑕疵(依赖无版本锁定)
Safe to install
可直接使用,建议在生产环境锁定 Node.js 运行时版本
Findings 2 items
| Severity | Finding | Location |
|---|---|---|
| Low | Node.js 运行时版本未锁定 | package.json:7 |
| Info | 定时任务由外部调度器管理 | scripts/push-toggle.js:26 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | WRITE | WRITE | ✓ Aligned | scripts/push-toggle.js:34 - 保存用户推送设置到 data/users/*.json |
| Network | NONE | NONE | — | 所有脚本无网络请求,仅通过 stdout 输出文本 |
| Shell | READ | READ | ✓ Aligned | SKILL.md 声明 node>=18 运行时,脚本通过 node 命令执行 |
1 findings
Medium External URL 外部 URL
https://openclaw.ai README.md:5 File Tree
7 files · 10.0 KB · 221 lines Markdown 2f · 121L
JavaScript 3f · 85L
JSON 2f · 15L
├─
▾
scripts
│ ├─
evening-push.js
JavaScript
│ ├─
morning-push.js
JavaScript
│ └─
push-toggle.js
JavaScript
├─
_meta.json
JSON
├─
package.json
JSON
├─
README.md
Markdown
└─
SKILL.md
Markdown
Dependencies 1 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
无第三方依赖 | N/A | Node.js 内置 | No | 仅使用 fs、path 内置模块 |
Security Positives
✓ ✅ 完整的输入验证:sanitizeId() 使用白名单正则 ^[a-zA-Z0-9_-]{1,128}$
✓ ✅ 路径遍历防护:safeUserPath() 确保文件操作在 USERS_DIR 范围内
✓ ✅ 时间格式验证:sanitizeTime() 校验 00:00-23:59 格式
✓ ✅ 渠道白名单控制:仅允许 telegram/feishu/slack/discord 四个渠道
✓ ✅ 无网络请求:所有操作本地化,数据不外传
✓ ✅ 无远程代码执行:无 eval、动态代码加载
✓ ✅ 无敏感路径访问:不涉及 ~/.ssh、.env、凭证文件
✓ ✅ 依赖最小化:仅使用 Node.js 内置模块