The content clients send . and .. as path segments

オープン 初心者向け
#3,273 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp, typescript

調査の方向性

まず clients/typescript/src/client.ts の segment() と src/FluentCMS.Client/FluentCmsClient.cs の Segment() から始め、両方のクライアントのテストを読んでください。各クライアントが空のパス値、.、..(%2e 形式を含む)をどのように扱うか確認してください。指定されたセグメントに対して両方のクライアントが例外をスローすることを示すテストを追加してください。両方のクライアントで受け入れ条件を満たしたら完了です。

索引モデルが issue の本文から書いたものです。

説明

area:sdk security type:bug

Problem

segment() in clients/typescript/src/client.ts:166-172 and Segment() in src/FluentCMS.Client/FluentCmsClient.cs:157-191 percent-encode values, but . and .. pass unchanged and URL resolution removes them: getBy("article", "slug", "..") requests …/api/delivery/v1/article/by/, and a type .. reaches another route with the client's key. A front end that passes a route parameter into the client can be steered to another endpoint.

Proposal

Refuse empty, . and .. segments (and %2e forms) in both clients.

Acceptance

  • Both clients throw for . and .. in any segment
  • Tests in both clients

Found in the code review of 17 Nov 2026 (S7).

主要言語
C#
スター
569
フォーク
107
平均マージ
2時間 49分
マージ済み PR(30日)
397

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fluentcms/FluentCMS のほかの issue

fluentcms/FluentCMS の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。