Lightdashにdbt Cloud用Webhookの脆弱性、認証なしでプレビュー作成などの恐れ
Summary
Lightdashの0.3213.0までのバージョンには、認証なしでdbt CloudのWebhookを受け付けてしまう脆弱性があります。攻撃者がプロジェクトのUUIDを知っていれば、プレビューの作成などを外部から行える可能性があります。修正版の0.3214.0では識別子のパス・トラバーサルが修正されていますが、シークレットを設定していないWebhookは署名検証の対象にならないため、設定の確認も必要です。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Lightdashの0.3213.0までのバージョンには、認証なしでdbt CloudのWebhookを受け付けてしまう脆弱性があります。攻撃者がプロジェクトのUUIDを知っていれば、プレビューの作成などを外部から行える可能性があります。修正版の0.3214.0では識別子のパス・トラバーサルが修正されていますが、シークレットを設定していないWebhookは署名検証の対象にならないため、設定の確認も必要です。
Original description The description as published by the source.
Lightdash is an open source business intelligence platform. In affected versions through 0.3213.0, the dbt Cloud webhook POST /api/v1/projects/{projectUuid}/dbt-cloud/webhook has no authentication middleware or signature validation. In packages/backend/src/controllers/projectController.ts, testWebhook() accepts accountId and runId from a job.run.completed request and passes them to createPreviewWithExplores() in packages/backend/src/services/ProjectService/ProjectService.ts. These unsanitized values are interpolated into the server-side dbt Cloud API URL, which is requested with the victim project's API key in the Authorization header. Path traversal through accountId changes the requested path on cloud.getdbt.com without changing its host, so the credential-bearing request reaches an attacker-influenced path on that fixed host. The advisory claims API-key theft, but the supplied evidence does not establish that the attacker can observe the Authorization header. The unauthenticated webhook also allows preview creation. The target must be a dbt Cloud IDE project and the attacker must know its projectUuid; the UUID is not enumerable but can be discovered in shared or multi-tenant contexts. Version 0.3214.0 fixes identifier path traversal and verifies webhook HMAC signatures only when a secret is configured; without a secret, unsigned webhooks continue to be processed.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- web github.com