扫描报告
15 /100
skill-xhs-mcp-service
小红书(XHS/RED)自动化助手 — MCP 服务端提供 13 个工具:登录管理、内容获取、搜索、互动操作(点赞/收藏/评论)、用户主页获取和图文/视频发布
Legitimate Xiaohongshu automation MCP service with no malicious behavior; cookie storage is local-only, network access is limited to the official platform, and all 13 tools are fully declared in documentation.
可以安装
Pin dependency versions in package.json (e.g., [email protected] without caret), encrypt cookies.json at rest, and consider restricting XHS_HOST from 0.0.0.0 to 127.0.0.1 for production deployments.
安全发现 4 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 低危 | Unpinned dependency versions with caret ranges 供应链 | package.json:27 |
| 低危 | Cookies stored in plaintext JSON file 敏感访问 | data/cookies.json:1 |
| 低危 | Service binds to 0.0.0.0 by default 权限提升 | scripts/index.js:17 |
| 提示 | Dormant hardcoded IP in browser.js 供应链 | scripts/browser.js:59 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 文件系统 | WRITE | WRITE | ✓ 一致 | browser.js:79-84 writes cookies.json to data/ |
| 网络访问 | READ | READ | ✓ 一致 | All HTTP requests target www.xiaohongshu.com only |
| 命令执行 | NONE | WRITE | ✓ 一致 | ensure-service.js:41 spawns 'node' process to start the MCP server |
| 环境变量 | NONE | READ | ✓ 一致 | browser.js:20 reads XHS_PROXY; index.js:17 reads XHS_PORT/XHS_HOST |
1 高危 8 项发现
高危 IP 地址 硬编码 IP 地址
120.0.0.0 scripts/browser.js:59 中危 外部 URL 外部 URL
https://www.xiaohongshu.com scripts/login.js:22 中危 外部 URL 外部 URL
https://creator.xiaohongshu.com/publish/publish scripts/login.js:41 中危 外部 URL 外部 URL
https://www.xiaohongshu.com/explore/$ scripts/xhs-tools.js:44 中危 外部 URL 外部 URL
https://www.xiaohongshu.com$ scripts/xhs-tools.js:87 中危 外部 URL 外部 URL
https://www.xiaohongshu.com/explore scripts/xhs-tools.js:206 中危 外部 URL 外部 URL
https://www.xiaohongshu.com/search_result?keyword=$ scripts/xhs-tools.js:244 中危 外部 URL 外部 URL
https://www.xiaohongshu.com/user/profile/$ scripts/xhs-tools.js:490 目录结构
13 文件 · 73.7 KB · 2837 行 JavaScript 9f · 2163L
Markdown 2f · 360L
JSON 2f · 314L
├─
▾
data
│ └─
cookies.json
JSON
├─
▾
references
│ └─
api.md
Markdown
├─
▾
scripts
│ ├─
browser.js
JavaScript
│ ├─
ensure-service.js
JavaScript
│ ├─
index-fixed.js
JavaScript
│ ├─
index-progressive.js
JavaScript
│ ├─
index-sse.js
JavaScript
│ ├─
index.js
JavaScript
│ ├─
login.js
JavaScript
│ ├─
utils.js
JavaScript
│ └─
xhs-tools.js
JavaScript
├─
package.json
JSON
└─
SKILL.md
Markdown
依赖分析 5 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
@modelcontextprotocol/sdk | ^1.0.0 | npm | 否 | Version not pinned with ^ range |
express | ^4.18.2 | npm | 否 | Version not pinned with ^ range |
puppeteer | ^24.0.0 | npm | 否 | Version not pinned with ^ range; this is the heaviest dependency |
qrcode | ^1.5.3 | npm | 否 | Version not pinned with ^ range |
zod | ^3.22.0 | npm | 否 | Version not pinned with ^ range |
安全亮点
✓ All 13 MCP tools are fully declared in SKILL.md with matching implementations — no hidden functionality
✓ No credential harvesting: no iteration over os.environ, no SSH/AWS config access, no .env reading
✓ No data exfiltration: all network requests are confined to www.xiaohongshu.com and creator.xiaohongshu.com
✓ No obfuscation: no base64 payloads, no eval(), no atob(), no dynamic code generation
✓ No remote script execution: no curl|bash or wget|sh patterns
✓ Cookies are stored locally only and not transmitted to any third party
✓ Uses standard, well-audited dependencies (puppeteer, express, @modelcontextprotocol/sdk)