/articles 端点泄露文章查看密码| CVE | CVE-2026-129493 (VDB-437424) |
| 组件 | bolo-blog/bolo-solo — ArticleProcessor.getArticlesByPage(公开的 GET /articles) |
| 受影响版本 | 1.7 – 2.6.4(公告所对应提交处的发布版本即为受影响版本;上游未修复) |
| 修复版本 | 发布时上游无修复;修复侧为经哈希校验的合成修复(已按此记录) |
| CWE | CWE-200(敏感信息泄露) |
| 影响 | 每篇受密码保护文章的明文 articleViewPwd 都会随 /articles 发送给任意匿名访问者;将其提交至 /console/article-pwd 即可使受保护内容变为可读——查看密码的机密性边界形同虚设 |
| 攻击向量 | 网络,无需认证——一次 GET 请求 |
| 触发条件 | 分页列表中任意一篇受密码保护的文章 |
ArticleQueryService 有一个专用的清理方法
removeUnusedProperties(JSONObject),它会在文章交给渲染器之前剥离 ARTICLE_VIEW_PWD
(以及其他内部字段)。但公开端点所使用的
分页查询路径从不执行该方法:
// ArticleQueryService.getArticles(requestJSONObject) — no removeUnusedProperties call
// ArticleProcessor.getArticlesByPage (the public GET /articles):
final JSONObject result = articleQueryService.getArticles(requestJSONObject);
final List<JSONObject> articles = CollectionUtils.jsonArrayToList(result.getJSONArray(Article.ARTICLES));
dataModelService.setArticlesExProperties(context, articles, preference);
jsonObject.put(Keys.RESULTS, result);
因此,原始行——包括 articleViewPwd——会进入匿名 JSON 响应。该实验环境运行的是真实的 bolo-solo v2.6.4_stable(上游 Maven 构建,内嵌 H2),并证明了完整链路:创建受保护文章 → 从 /articles 泄露其密码 → 通过 /console/article-pwd 解锁 → 读取受保护内容。
两个事实共同作用:
getArticlesByPage 是公开的、无需认证的列表端点;getArticles(JSONObject) 路径不会像单篇文章路径和随机/相关路径那样,将其行数据通过 removeUnusedProperties 处理。密码验证流程(POST /console/article-pwd,携带 articleId + pwdTyped)接受任何调用者的密码猜测,并将解锁状态存储在该调用者的会话中——因此泄露的密码可直接转化为读取权限。受保护内容、评论以及任何未来的“密码门控”功能共享同一边界。
| 服务 | 镜像 | 角色 |
|---|---|---|
bolo-vuln | cve-2026-129493:vuln | 按发布版本构建的 bolo-solo v2.6.4_stable(上游构建配方) |
bolo-fixed | cve-2026-129493:fixed | 同一代码树 + lab/patch-fixed.py(哈希校验):分页响应会剥离 articleViewPwd |
poc | cve-2026-129493-poc:local | 仅使用标准库的 Python 驱动 |
该实例通过产品自身的首次运行流程进行引导(POST /oauth/bolo/login 创建管理员;第二次登录设置会话 cookie——上游行为),通过 docker profile 使用内嵌 H2 数据库,管理员文章 API 完全按照管理控制台的方式创建受保护文章。
./run-lab.sh build # upstream bolo build at v2.6.4_stable (both trees)
./run-lab.sh up # cve129493lab network, bolo-vuln, bolo-fixed
./run-lab.sh sweep # check / exploit / probe / mitigation on both sides
./run-lab.sh down
poc/poc.py(仅使用标准库):
GET /articles;根据密码是否存在进行分类。退出码 1 表示存在漏洞,0 表示安全,3 表示无 worker,2 表示无法连接。POST /console/article-pwd 并在其永久链接处读取受保护文章。/articles、/articles/1、标签页。| 运行 | bolo-vuln (v2.6.4) | bolo-fixed(合成) |
|---|---|---|
check | HTTP 200,存在 articleViewPwd":"s3cret-view-pass" | 密码不存在 |
exploit | 密码泄露 → 文章解锁 → 读取受保护内容 | 无泄露 |
probe /articles、/articles/1、标签 | /articles 泄露;其他 404 | 任何位置均无泄露 |
mitigation | 泄露 | 安全 |
捕获的运行记录:evidence/check-*-run.txt、evidence/exploit-*-run.txt、
evidence/probe-*-run.txt、evidence/mitigation-*-run.txt、
evidence/versions.txt、evidence/0day-sweep.txt。
cve129493lab 网络上。端点矩阵即为攻击面扫描(evidence/0day-sweep.txt):在
修复后的构建中,没有任何公开端点暴露视图密码;在
已发布的构建中,恰好有一个形式(GET /articles)会暴露——未发现第二条
泄露路径。同一产品中的同类存储型 XSS 漏洞为 CVE-2026-129492,已在
CVE-2026-129492 中复现。
README.md this write-up
run-lab.sh environment driver (build / up / sweep / down)
Makefile convenience targets
poc/poc.py the PoC (check / exploit / probe / mitigation)
poc/Dockerfile runner image (python:3.12-alpine)
lab/lab.Dockerfile multi-stage build (bolo v2.6.4_stable, both trees)
lab/patch-fixed.py the hash-checked synthetic remediation
lab/entrypoint.sh standalone Starter
evidence/ captured runs of every mode on both sides
TRACKING.md excluded (working record)