I ran security scan on our application and one of the security issues that came up with is "Download of Code Without Integrity Check". This risk points of the line at Class.forName("com.mysql.jdbc.Driver");
I have not able to find out
- how do I secure the above line of code?
- How do I make sure parameter for
forName("")
is not malicious class that I would be loading.
Note: I am using Java 1.7 on our live environment. We do not have a security policy/SecurityManager in place.
Edit: Security Scan used is Checkmarx.