Benign java Download

fixed-query.java

Implements middleware Java service interfaceJDBC connection through DriverManager
SHA-256fd188a378c8eea8e7afac494bc59e2d26d57b89d779cc9e72e5c5a9802146823

Evidence

getParameter method-call syntax lines 1–9
1class SearchService implements JavaService2 {
2 Object invoke(DataControllerRequest req) throws Exception {
3 String key = req.getParameter("sql");
4 Connection db = DriverManager.getConnection("jdbc:postgresql://db.invalid/demo", "app", "");
5 PreparedStatement st = db.prepareStatement("SELECT id FROM items WHERE id = ?");
6 st.setString(1, key);
7 return st.executeQuery();
8 }
9}

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.