[BUG]: User-controlled org/repo names are interpolated into API URLs unencoded

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

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

@AbhishekKumar-cse がすでに取り組んでいます。

2026年11月10日 から。

  • #450 @AbhishekKumar-cse による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
66/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github, javascript
領域
api, security

調査の方向性

payload は fetchWithCache と、https://api.github.com/orgs/${org} および repos/${org}/${repo}/... への呼び出しだけを示しているので、ユーザーが入力した org と repo の値がそれらの URL に到達するすべての呼び出し箇所をまず見つけることから始めてください。../users/octocat を org として入力し、リクエストパスを確認することで再現します。Done とは、org と repo のセグメントが補間前にエンコードまたは検証され、その結果 /、?、#、.. のような入力が 1 つのパスセグメント内に留まり、通常の名前ではリクエストが引き続き機能することを意味します。

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

説明

bug
Bug Description

Organization and repository names from user input are inserted directly into GitHub API URLs:

fetchWithCache(`https://api.github.com/orgs/${org}`, pat)
fetchWithCache(`https://api.github.com/repos/${org}/${repo}/...`, pat)

The input is trimmed and deduplicated but not validated or URL-encoded. Characters such as /, ?, #, or .. can change the requested API path or query.

Steps to Reproduce
  1. Enter an org value such as ../users/octocat.
  2. Start an explore.
  3. Observe that the request path is normalized to a different GitHub API endpoint than intended.
Impact

Low - Minor inconvenience

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
主要言語
JavaScript
スター
53
フォーク
182
平均マージ
18分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

AOSSIE-Org/OrgExplorer のほかの issue

AOSSIE-Org/OrgExplorer の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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