Skip to content

[security] ダウンロード先ホスト/リダイレクト先を検証(NFR-1) #42

Description

@yk-lab

概要

要求仕様書 NFR-1 に「取得 URL は go-task 公式リリースに固定し、リダイレクト先を検証する」とある。現状 src/constants.ts / src/download.ts で https://github.com/go-task/task/releases/download/... を固定して取得しているが、リダイレクト先の検証は行っていない。

受け入れ条件

  • リリース資産・checksums ファイルの取得 URL が github.com/go-task/task 配下であることを検証する。
  • リダイレクトが発生した場合、その最終到達 URL が信頼できるホスト(github.com / objects.githubusercontent.com 等)であることを確認する。
  • 不正なホストへのリダイレクトは即座にエラー(PermanentError)とする。
  • テストで悪意あるリダイレクトを注入し、検証が機能することを確認する。

参照

  • 要求仕様書 NFR-1
  • src/constants.ts releaseDownloadUrl
  • src/download.ts downloadAsset

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2: medium通常securityセキュリティ関連(認証・チェックサム・供給網)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions