swagger-api / swagger-api/swagger-codegen
[Javascript clients] Vulnerability in one of the dependencies.
まだ誰も着手していません。
- 主要言語
- Mustache
- スター
- 17.8k
- フォーク
- 6k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Description
The HTTP client module superagent is vulnerable to ZIP bomb attacks. In a ZIP bomb attack, the HTTP server replies with a compressed response that becomes several magnitudes larger once uncompressed. If a client does not take special care when processing such responses, it may result in excessive CPU and/or memory consumption. An attacker might exploit such a weakness for a DoS attack. To exploit this the attacker must control the location (URL) that superagent makes a request to.
https://nvd.nist.gov/vuln/detail/CVE-2017-16129
Github is issuing a warning in generated clients, see for example:
https://github.com/bitcoind-rest/javascript-client
Swagger-codegen version
Current versions of:
Suggest a fix/enhancement
Update superagent or use fetch API or any other clients.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
samples/client/petstore/javascript-es6 と javascript-promise-es6 の package.json ファイルから始め、次に、生成された JavaScript クライアントでそれらの依存関係がどのように使用されているかを追跡します。影響を受ける superagent のバージョンを確認し、生成されたクライアントの出力をレビューします。脆弱な依存関係が存在しなくなり、クライアントが報告された警告なしで引き続き動作すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- security
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100