I am trying to find a way on how to modify java.sql.Statement.execute(String sql) method.
It is in interface and unfortunately no implementation class found in src package of Java.
Can you please suggest me on how can I modify the behaviour of this method?
I need to sanitize the String sql first (from SQL Injection) and the let it behave as it should.
I have to mention, I am working on the Java framework, and not on source code of the application.
Meaning that I can only modify core Java classes, I am doing a research on creating new java version which will allow SQLi sanitization dynamically without any modification to the source code of the web applications.