• vnhin (Veracode, Inc.)

    Hi @tharakanath_selvakumar (Community Member)​ ,

     

    The usage of System.AppDomain.CurrentDomain.CreateInstanceFromAndUnwrap() with untrusted input can lead to unsafe reflection (CWE 470). From your snippet and the limited context provided, I would have to assume that the variables _dlFe and stStrg can be potentially malicious which could allow loading and execution on an unintended assembly and type. Those arguments should be validated to ensure the expected assembly and type are being used. I recommend implemented an allow-list of expected assembly names and types that can be used by the application. This will ensure that only trusted values defined within your allow-list can be used and protect you from potential unsafe reflection.

     

    If you do have validation or certain compensating controls in place, it's likely the Veracode Static Analysis tool was not able to detect your remediation efforts due to your implementation. If that is the case, you can likely document them as a mitigation and work with your security team to get them reviewed/approved: https://help.veracode.com/reader/DGHxSJy3Gn3gtuSIN2jkRQ/~p4MSKOS8F8X8h0KwFTKoQ .

     

    If you still I have any questions, I would recommend scheduling a consultation call with a member of my team to review this specifically within the context of your application code: https://help.veracode.com/reader/DGHxSJy3Gn3gtuSIN2jkRQ/7YQTCDJKFEQzL3gL_N90hQ .

     

    Thanks,

    Veasna Nhin

    Senior Application Security Consultant

     

    Expand Post

Topics (4)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.