The pickle module documentation makes confusing statements about secure alternatives
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- PR マージ指標
- PR 指標を取得中
説明
Documentation
The pickle module states that the xmlrpc marshaling API should be used if the users desire a safe alternative to unpickling untrusted data:
https://docs.python.org/3.14/library/pickle.html:
As our examples shows, you have to be careful with what you allow to be unpickled. Therefore if security is a concern, you may want to consider alternatives such as the marshalling API in xmlrpc.client or third-party solutions.
However, the xmlrpc module has right at the top a warning that says the following:
https://docs.python.org/3.14/library/xmlrpc.client.html#module-xmlrpc.client:
The xmlrpc.client module is not secure against maliciously constructed data. If you need to parse untrusted or unauthenticated data see XML vulnerabilities.
These two statements contradict each other and could lead users to falsely believe that they are using a safe alternative.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
pickle モジュールのドキュメントにある xmlrpc.client についての記述から始め、xmlrpc.client のドキュメントの冒頭にあるセキュリティ警告と比較します。矛盾する説明を修正し、ユーザーが xmlrpc.client を信頼できないデータに対して安全だと受け取らないようにします。2 つのページで一貫したセキュリティに関する注意が示されれば作業は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- documentation, security
- issue の種類
- ドキュメント
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 38/100