
tharakanath_selvakumar (Community Member) asked a question.
Getting the veracode flow when the object value is being set.
Dim ob As New Object
ob = System.AppDomain.CurrentDomain.CreateInstanceFromAndUnwrap(_dlFe, stStrg)

tharakanath_selvakumar (Community Member) asked a question.
Getting the veracode flow when the object value is being set.
Dim ob As New Object
ob = System.AppDomain.CurrentDomain.CreateInstanceFromAndUnwrap(_dlFe, stStrg)
Ask the Community
Get answers, share a use case, discuss your favorite features, or get input from the community.
By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.
.png)
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
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