system.net.http.formatting.dll veracode finding : Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (CWE ID 470)(1 flaw)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Inizia individuando l'oggetto GetDefaultValueForType(System.Type) in system.net.http.formatting.dll e determina in che modo il finding di Veracode raggiunge la chiamata di reflection. Esamina il difetto segnalato e il relativo percorso di input prima di decidere un ambito sicuro. Il lavoro è completato quando il finding di reflection non sicura è stato risolto e la scansione Veracode pertinente non segnala più flaw 804.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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%
- Lingua principale
- C#
- Stelle
- 897
- Fork
- 358
- Merge medio
- 40m
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aspnet/AspNetWebStack
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
aspnet/AspNetWebStack#431 · 1 commento ·
-
Needs: Author Feedback
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
aspnet/AspNetWebStack#430 · 2 commenti ·
-
Needs: Author Feedback
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
aspnet/AspNetWebStack#429 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
aspnet/AspNetWebStack#407 · 1 commento ·
-
bug
aspnet/AspNetWebStack#399 · 2 commenti · 1 assegnatario ·
Tutte le issue di aspnet/AspNetWebStack
Issue simili
-
CS0162 "Unreachable code detected" warning from a MSBuildTemp .tmp file in every game project Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
apache/arrow-adbc#4809 ·
-
type/automation type/tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
microsoft/vscode-azurefunctions#5197 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
microsoft/microsoft-ui-reactor#1274 ·