
GYunchov342370 (Community Member) asked a question.

GYunchov342370 (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.
Hi @GYunchov342370 (Community Member) ,
You can find a detailed remediation guide for CWE 73 with examples in Java over in the Articles: https://community.veracode.com/s/article/how-do-i-fix-cwe-73-external-control-of-file-name-or-path-in-java .
Please let me know if you have any remaining questions or concerns.
Thank you,
Boy Baukema
Shal I use @FilePathCleanser
When I use new File(path)?
Regards,
Georgi Yunchov
Senior Software Engineer I,
Credit Services Development and Delivery (CS-CSDA) - Nordics
Experian Bulgaria EAD
Megapark Office Building
115 G Tzarigradsko shosse Boulevard
Floors 10/11
Sofia 1784
T: +359 (0) 2 451 28 37
M: +359 878 188 554
Georgi.Yunchov@experian.com<mailto:Georgi.Yunchov@experian.com>
www.experian.bg<http://www.experian.bg/>
[Experian BM TM RGBsm]
Hi @GYunchov342370 (Community Member) ,
Whether you chose to use Veracode Static Analysis Custom Cleansers depends on 3 things:
1. Whether your organization has this setting enabled, I checked and your security team to allow custom cleansers to propose mitigations.
2. How often you intend to reuse this function. If you only intend to use it once it will only be more overhead, you may want to propose a mitigation manually.
3. Whether you want to include our JAR file in your project. Typically, older legacy projects have stricter requirements about introducing new functionality.
If however it's enabled (again, it is enabled for you), and you plan to reuse the function and this project is not a legacy product I would recommend using it.
You can read more on our Custom Cleanser support here: https://help.veracode.com/reader/DGHxSJy3Gn3gtuSIN2jkRQ/xrEjru~XmUHpO6~0FSae2Q /
Thank you,
Boy Baukema
I put @FilePathCleanser
Annotation on my problem method. But it still has CWE-73 level issue. How to solve it?
Regards,
Georgi Yunchov
Senior Software Engineer I,
Credit Services Development and Delivery (CS-CSDA) - Nordics
Experian Bulgaria EAD
Megapark Office Building
115 G Tzarigradsko shosse Boulevard
Floors 10/11
Sofia 1784
T: +359 (0) 2 451 28 37
M: +359 878 188 554
Georgi.Yunchov@experian.com<mailto:Georgi.Yunchov@experian.com>
www.experian.bg<http://www.experian.bg/>
[Experian BM TM RGBsm]
Custom Cleanser attributes do not cause the flaws to close but will propose a mitigation for you.
Once the mitigation is proposed you must reach out to your security team to request a mitigation proposal review.
Thank you,
Boy Baukema