
THirsch156079 (Community Member) asked a question.
Here is my code snippset, in which i get the flaw CWE ID 93:
msg.setReplyTo(new javax.mail.Address[] {new InternetAddress(Encode.forJava(email.getReplyTo()))});
I read that the Encoder "org.owasp.encoder.Encode" should solve the flaw. But it didn't.
Have anyone another idea to write the code CRLF sure for the Veracode Scanner?
Many thank.
Tassilo
.png)
Hi @THirsch156079 (Community Member) ,
Encode.forJava is a supported cleansing function in Java for CWE 93 ( for a full overview see: https://help.veracode.com/reader/4EKhlLSMHm5jC8P8j3XccQ/IiF_rOE79ANbwnZwreSPGA ).
If this is not recognized automatically I would recommend you contact our technical support team. Here's how you can log a case:
1. Navigate to the upper right corner of any page in the Community, click on your user avatar.
2. Select Contact Support from the drop-down menu.
In your support case please ensure you mention:
Thank you,
Boy Baukema