Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

system.net.http.formatting.dll veracode finding : Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (CWE ID 470)(1 flaw)

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

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

評価

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

調査の方向性

まず system.net.http.formatting.dll 内のオブジェクト GetDefaultValueForType(System.Type) を特定し、Veracode の finding がどのようにリフレクション呼び出しに到達するかを確認します。安全なスコープを決定する前に、報告された不備とその入力経路を確認してください。安全でないリフレクションの finding に対処し、該当する Veracode スキャンで flaw 804 が報告されなくなれば完了です。

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

説明

Needs: Author Feedback

dear Team,

This dll is having issue found by veracode scan..

Can you help to make updated release, to solve this issue?

I can describe you some information of the finding:

Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (CWE ID 470)(1flaw)
Description
A call uses reflection in an unsafe manner. An attacker can specify the class name to be instantiated, which may create
unexpected control flow paths through the application. Depending on how reflection is being used, the attack vector
may allow the attacker to bypass security checks or otherwise cause the application to behave in an unexpected
manner. Even if the object does not implement the specified interface and a ClassCastException is thrown, the
constructor of the untrusted class name will have already executed.

Recommendations
Validate the class name against a combination of white and black lists to ensure that only expected behavior is
produced.

Instances found via Static Scan
Flaw Id : 804
Module # : -
Class # : 4
Module : system.net.http.formatting.dll
Location : object GetDefaultValueForType(System.Type) 91%

image

主要言語
C#
スター
897
フォーク
358
平均マージ
40分
マージ済み PR(30日)
1

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

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

はじめの一歩

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

aspnet/AspNetWebStack のほかの issue

aspnet/AspNetWebStack の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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