Approaches to leverage different databases
PostgreSQL
TODO
Output into outfile.
HSQLDB
You can query java code from HSQLDB Database in the following way:
The function below returns value of executing getProperty method.
In this way we can create reverse shell in .jsp file using writeBytesToFilename:
PoC to checks if we can save data to file (you should encode the file contents with Decorer in Burp Suite - ASCII HEX):
You can use LFI in test.txt field
Finding the write location:
If the method is not available due to Java version you should find other useful functions in Java / Application code.
Last updated