Skip to content
High

Outlineで同時リクエストによりリソース上限を超えて作成される恐れ

GHSA-5h2f-gc77-r2j2 First seen on SecPulse

Summary

Outlineでは、リソース数の上限チェックと作成処理が分かれているため、同時に多数の作成リクエストを送ると上限を超えて作成される脆弱性(TOCTOU、競合状態)が見つかりました。深刻度は高とされ、認証済みのユーザーが対象となります。修正版として1.10.0が公開されているため、Outlineを1.10.0以降へ更新してください。

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.

Outlineでは、リソース数の上限チェックと作成処理が分かれているため、同時に多数の作成リクエストを送ると上限を超えて作成される脆弱性(TOCTOU、競合状態)が見つかりました。深刻度は高とされ、認証済みのユーザーが対象となります。修正版として1.10.0が公開されているため、Outlineを1.10.0以降へ更新してください。

Affected packages

PackageAffected → Fixed
otherOutline
< 1.10.0→ 1.10.0
Original description The description as published by the source.

Race Condition / TOCTOU in Multiple Resource Limit Checks Allows Bypass of Quota Enforcement

Summary

Multiple resource limit enforcement checks in Outline use a non-atomic count-then-create pattern (TOCTOU / Time-of-Check-to-Time-of-Use), allowing concurrent requests to bypass the intended maximum limits. An authenticated user can send concurrent creation requests that all pass the limit check simultaneously, creating more resources than the configured maximum allows.

Affected Components

Four independent TOCTOU race conditions exist:

1. WebhookSubscription Limit Bypass (all instances)

File: server/models/WebhookSubscription.ts:157-166

The @BeforeCreate hook checkLimit performs a plain SELECT COUNT(*) without FOR UPDATE or any transaction wrapping, then checks against maxSubscriptions (10). Concurrent webhook creation requests all read the same count and all pass the check.

@BeforeCreate
static async checkLimit(model: WebhookSubscription) {
  const count = await this.count({
    where: { teamId: model.teamId },
  });
  if (count >= WebhookSubscriptionValidation.maxSubscriptions) {
    throw ValidationError(
      `You have reached the limit of ${WebhookSubscriptionValidation.maxSubscriptions} webhooks`
    );
  }
}

2. Pin Limit Bypass (all instances)

File: [server/commands/pinCreator.ts:43-48](https://github.com/out…

Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details