Checkmarx: Unsafe object binding
We are using Java Spring framework. We have an endpoint for passing email object. @RequestMapping(method = RequestMethod.POST, path = "/api/messaging/v1/emailMessages/actions/send") String sendEmail(@RequestBody Email email); Here checkmarx says: The email may unintentionally allow setting the value of cc in LinkedList<>, in the object Email. Email Object is as follow: public class Email { private List<String> bcc = new LinkedList<>(); private List<String> cc = new LinkedList<>(); private String content; private ContentType contentType = ContentType.TXT; private String from; private String ret
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.