I have a web application with SQL injection as part of an INSERT statement. It looks like this:
INSERT INTO table1 VALUES ('str1', 1, 'INJECTION HERE')
I can inject regular injections with multiple queries, such as ');truncate table1;--, but due to the fact that Java + MySQL is used, it does not allow stacking multiple queries, so the above injection will lead to an error from MySQL and the second query is never executed.
Thus, basically it seems that all that can be achieved from such an injection in the aforementioned architecture is an injection of "junk data", which is possible without injection.
There are more methods, such as using load_file(), but it still will not allow me to manipulate the database to the extent I am looking for.
Am I missing something? Is there any other way to use this injection to gain control of the database?
Tenance
source
share