
JCorreia365843 (Community Member) asked a question.

JCorreia365843 (Community Member) asked a question.
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.
I can recommend looking at the following Community Article on how to fix CWE 73 flaws: https://community.veracode.com/s/article/how-do-i-fix-cwe-73-external-control-of-file-name-or-path-in-java (please note you must be logged in to the Community with a customer account).
Though it has Java examples the same applies for .NET.
Please note that System.IO.Path.GetInvalidPathChars() does not remove the security risk of an attacker being able to manipulate file paths as it only verifies that there are not invalid characters in the path (something like ../ which an attacker could use are valid characters and will not be blocked).
Thank you,
Boy Baukema
Thanks for your response. But it seems that the article has no content.
See screenshot below. I can only see the title.
Ah, sorry, thank you for letting me know! Looks like there is a problem with the access, I'll ask a Community administrator and let you know when it is available.
Hi,
I have the same issue with accessing the article link, could you please also let me know once this is resolved.
Thanks,
Martin
@JCorreia365843 (Community Member) & @MMayerhofer153360 (Community Member) - You should be able to see the article which Boy suggested. I apologize for the inconvenience. Please confirm. If the article helps answer your question, I would really appreciate it if you could select Boy's response as the Best Answer to help other Veracode Community members who have a similar inquiry. Thank you!
Hi @Asha, Customer Engagement (Veracode, Inc.), @Boy, Security Consultant (Veracode)
I'm still getting a page not found error when trying to access the link:
Thanks,
Martin