Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

オープン
#59,305 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
backend, security

調査の方向性

Start with the current implementations of shutil.copy, shutil.copy2, and shutil.copyfile, then review the linked python_shutil_copyfile.diff and python_shutil_copy_with_umask.diff patches. Compare their proposed handling of race conditions and umask-related disclosure with the open issue; done means the security concerns are addressed and the relevant behavior is covered by the project's existing checks.

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

説明

3.7 (EOL) stdlib type-security
BPO 15100
Nosy @loewis, @pitrou, @giampaolo, @florentx, @hynek, @jimjjewett
Files
  • python_shutil_copyfile.diff: A patch for copyfile procedure
  • python_shutil_copy_with_umask.diff: A patch for the disclosure bug only
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2012-06-18.11:57:48.316>
    labels = ['type-security', '3.7', 'library', 'expert-IO']
    title = 'Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile'
    updated_at = <Date 2018-08-13.12:48:25.884>
    user = 'https://bugs.python.org/radoslawzarzynski'
    

    bugs.python.org fields:

    activity = <Date 2018-08-13.12:48:25.884>
    actor = 'Jim.Jewett'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)', 'IO']
    creation = <Date 2012-06-18.11:57:48.316>
    creator = 'radoslaw.zarzynski'
    dependencies = []
    files = ['26042', '26043']
    hgrepos = []
    issue_num = 15100
    keywords = []
    message_count = 6.0
    messages = ['163096', '163160', '185124', '185125', '213975', '323481']
    nosy_count = 10.0
    nosy_names = ['loewis', 'pitrou', 'giampaolo.rodola', 'Arfrever', 'flox', 'neologix', 'hynek', 'Jim.Jewett', 'radoslaw.zarzynski', 'jm']
    pr_nums = []
    priority = 'high'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'security'
    url = 'https://bugs.python.org/issue15100'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6', 'Python 3.7']
    

    主要言語
    Python
    スター
    77.2k
    フォーク
    36k
    平均マージ
    1日 9時間
    マージ済み PR(30日)
    558

    コントリビューションガイド

    コントリビューションガイドを開く

    はじめの一歩

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

    python/cpython のほかの issue

    python/cpython の issue をすべて見る

    似ている issue

    Python の issue をもっと見る

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

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