Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 5 new columns ({'validation_result', 'fixed_version', 'buggy_version', 'javaset_id', 'category'}) and 3 missing columns ({'buggy', 'id', 'fixed'}).
This happened while the csv dataset builder was generating data using
hf://datasets/tharun714/Bug_detection_dataset/MultipleBug_Java.csv (at revision 0771bbd4c33fdeef59a61cc211d4c71f7f03abef)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
writer.write_table(table)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 644, in write_table
pa_table = table_cast(pa_table, self._schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
javaset_id: string
category: string
bug_type: string
buggy_version: string
fixed_version: string
validation_result: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1000
to
{'id': Value('string'), 'buggy': Value('string'), 'fixed': Value('string'), 'bug_type': Value('string')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1456, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1055, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 894, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 970, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1833, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 5 new columns ({'validation_result', 'fixed_version', 'buggy_version', 'javaset_id', 'category'}) and 3 missing columns ({'buggy', 'id', 'fixed'}).
This happened while the csv dataset builder was generating data using
hf://datasets/tharun714/Bug_detection_dataset/MultipleBug_Java.csv (at revision 0771bbd4c33fdeef59a61cc211d4c71f7f03abef)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
id string | buggy string | fixed string | bug_type string |
|---|---|---|---|
e40d50c6-915f-4e41-baff-286605f3235d | public void checkLogin0(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE username = '" + param0 + "' AND password = '" + param1 + "'";
ResultSet rs... | public void checkLogin0(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE username = '?0' AND password = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, pa... | ['Unvalidated Redirects', 'SQL Injection'] |
fd419061-ed36-4fcb-80b6-b0557fba68da | public void updateProfile1(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "UPDATE users SET name = '" + param1 + "' WHERE id = '" + param0 + "'";
ResultSet rs = stmt.execut... | public void updateProfile1(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "UPDATE users SET name = '?1' WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ps... | ['Hardcoded Credentials', 'SQL Injection'] |
7dad7c6a-1004-4b35-aef0-902b5a8e2111 | public void getUserByEmail2(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail2(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.e... | ['Insecure File Handling', 'SQL Injection'] |
1c45ff76-4532-41c2-8dcc-8e96e2bc0106 | public void checkLogin3(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE username = '" + param0 + "' AND password = '" + param1 + "'";
ResultSet rs... | public void checkLogin3(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE username = '?0' AND password = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, pa... | ['SQL Injection'] |
054dad0a-1a7b-4b56-ad6b-28ae81f30819 | public void getUserByEmail4(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail4(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.e... | ['Insecure File Handling', 'SQL Injection'] |
cbbb8166-36c2-403b-bd90-b9ecc8498967 | public void filterLogs5(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM logs WHERE level = '" + param0 + "' AND timestamp > '" + param1 + "'";
ResultSet rs = ... | public void filterLogs5(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM logs WHERE level = '?0' AND timestamp > '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param... | ['Missing Input Validation', 'SQL Injection'] |
81e3f31f-bf56-48d8-9d12-7dacc667061a | public void searchProducts6(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM products WHERE name LIKE '%" + param0 + "%'";
ResultSet rs = stmt.executeQuery(query);
} | public void searchProducts6(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM products WHERE name LIKE '%?0%'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = ... | ['SQL Injection'] |
58b3627b-cf85-49ec-ba27-5037144a3aca | public void deleteUser7(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "DELETE FROM users WHERE id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void deleteUser7(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "DELETE FROM users WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.executeQue... | ['Missing Input Validation', 'SQL Injection'] |
70578cfa-2a80-4443-9c0f-61dfd73022b2 | public void filterLogs8(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM logs WHERE level = '" + param0 + "' AND timestamp > '" + param1 + "'";
ResultSet rs = ... | public void filterLogs8(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM logs WHERE level = '?0' AND timestamp > '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param... | ['Missing Input Validation', 'SQL Injection'] |
ad83a447-5182-4ca1-82f8-08f59aaecb67 | public void getInvoice9(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM invoices WHERE invoice_no = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getInvoice9(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM invoices WHERE invoice_no = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pst... | ['Insecure Randomness', 'SQL Injection'] |
c1fcb3e6-b462-448a-97a8-cf00d05af22a | public void filterLogs10(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM logs WHERE level = '" + param0 + "' AND timestamp > '" + param1 + "'";
ResultSet rs =... | public void filterLogs10(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM logs WHERE level = '?0' AND timestamp > '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, para... | ['Insecure File Handling', 'SQL Injection'] |
07b85b46-f865-4344-812b-53de81e105a5 | public void validateCoupon11(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM coupons WHERE code = '" + param0 + "' AND active = 1";
ResultSet rs = stmt.executeQuery(query);
... | public void validateCoupon11(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM coupons WHERE code = '?0' AND active = 1";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
Resul... | ['Path Traversal', 'SQL Injection'] |
2e1dd752-59f6-43dc-9f0f-fb0e56d75124 | public void updateProfile12(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "UPDATE users SET name = '" + param1 + "' WHERE id = '" + param0 + "'";
ResultSet rs = stmt.execu... | public void updateProfile12(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "UPDATE users SET name = '?1' WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
p... | ['Path Traversal', 'SQL Injection'] |
de9594cf-febd-4db0-988c-a7a5417d949a | public void updateProfile13(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "UPDATE users SET name = '" + param1 + "' WHERE id = '" + param0 + "'";
ResultSet rs = stmt.execu... | public void updateProfile13(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "UPDATE users SET name = '?1' WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
p... | ['Command Injection', 'SQL Injection'] |
bb49a2c8-1f5f-4aee-b075-3ec5aae3f3ef | public void deleteUser14(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "DELETE FROM users WHERE id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void deleteUser14(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "DELETE FROM users WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.executeQu... | ['Insecure Randomness', 'SQL Injection'] |
d3976d63-201c-4610-85f5-e7d4aaa5f37d | public void filterLogs15(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM logs WHERE level = '" + param0 + "' AND timestamp > '" + param1 + "'";
ResultSet rs =... | public void filterLogs15(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM logs WHERE level = '?0' AND timestamp > '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, para... | ['Missing Input Validation', 'SQL Injection'] |
ec24bfb7-215a-421b-a650-1090a5066504 | public void getUserByEmail16(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail16(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['Hardcoded Credentials', 'SQL Injection'] |
c92d4134-d85a-4cf7-b087-afe24f394565 | public void getComments17(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM comments WHERE post_id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getComments17(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM comments WHERE post_id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstm... | ['SQL Injection'] |
4268b748-5a4c-4b37-a927-5df97f5827e9 | public void filterLogs18(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM logs WHERE level = '" + param0 + "' AND timestamp > '" + param1 + "'";
ResultSet rs =... | public void filterLogs18(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM logs WHERE level = '?0' AND timestamp > '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, para... | ['Hardcoded Credentials', 'SQL Injection'] |
995ff997-bde7-447c-85e2-bf49e98a7d53 | public void filterLogs19(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM logs WHERE level = '" + param0 + "' AND timestamp > '" + param1 + "'";
ResultSet rs =... | public void filterLogs19(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM logs WHERE level = '?0' AND timestamp > '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, para... | ['SQL Injection'] |
64a010c7-931c-4dd1-b800-80491909ec6e | public void getInvoice20(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM invoices WHERE invoice_no = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getInvoice20(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM invoices WHERE invoice_no = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = ps... | ['Insecure File Handling', 'SQL Injection'] |
bc47350b-1fba-42c6-b527-4a7d53aca523 | public void getInvoice21(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM invoices WHERE invoice_no = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getInvoice21(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM invoices WHERE invoice_no = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = ps... | ['Insecure File Handling', 'SQL Injection'] |
ef360ad9-5354-4d93-b520-fe2bf4f74565 | public void checkLogin22(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE username = '" + param0 + "' AND password = '" + param1 + "'";
ResultSet r... | public void checkLogin22(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE username = '?0' AND password = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, p... | ['Sensitive Data Exposure', 'SQL Injection'] |
b2caa855-8fba-4894-bbdf-2a2e8876dc28 | public void updateProfile23(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "UPDATE users SET name = '" + param1 + "' WHERE id = '" + param0 + "'";
ResultSet rs = stmt.execu... | public void updateProfile23(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "UPDATE users SET name = '?1' WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
p... | ['Sensitive Data Exposure', 'SQL Injection'] |
6335347c-0ff4-4c84-b254-68389544b578 | public void updateProfile24(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "UPDATE users SET name = '" + param1 + "' WHERE id = '" + param0 + "'";
ResultSet rs = stmt.execu... | public void updateProfile24(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "UPDATE users SET name = '?1' WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
p... | ['Weak Cryptography', 'SQL Injection'] |
9ef52c57-0490-4eb5-ad74-229c4fd62c05 | public void checkLogin25(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE username = '" + param0 + "' AND password = '" + param1 + "'";
ResultSet r... | public void checkLogin25(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE username = '?0' AND password = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, p... | ['SQL Injection'] |
4c05fd44-c843-420b-90c6-657314e9e8e9 | public void updateProfile26(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "UPDATE users SET name = '" + param1 + "' WHERE id = '" + param0 + "'";
ResultSet rs = stmt.execu... | public void updateProfile26(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "UPDATE users SET name = '?1' WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
p... | ['SQL Injection'] |
12401474-da4d-4ecb-b322-5ec43068118c | public void getUserByEmail27(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail27(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['SQL Injection'] |
0bc21d47-4dc8-4267-af9a-051f025dda91 | public void getComments28(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM comments WHERE post_id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getComments28(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM comments WHERE post_id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstm... | ['SQL Injection'] |
c55985b6-9287-4764-b759-a580b1613c56 | public void getComments29(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM comments WHERE post_id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getComments29(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM comments WHERE post_id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstm... | ['Insecure File Handling', 'SQL Injection'] |
e907a8bf-c43f-4e59-9bcf-7c5feb3c4ab9 | public void checkLogin30(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE username = '" + param0 + "' AND password = '" + param1 + "'";
ResultSet r... | public void checkLogin30(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE username = '?0' AND password = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, p... | ['Insecure File Handling', 'SQL Injection'] |
3daea0a4-034b-42d9-b644-ea7f163b5906 | public void deleteUser31(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "DELETE FROM users WHERE id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void deleteUser31(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "DELETE FROM users WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.executeQu... | ['SQL Injection'] |
0da43368-5514-4c8e-82f6-3e3ce4ce6163 | public void getInvoice32(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM invoices WHERE invoice_no = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getInvoice32(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM invoices WHERE invoice_no = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = ps... | ['Path Traversal', 'SQL Injection'] |
29d36c85-1743-4322-b0c5-d9d37f288a0d | public void deleteUser33(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "DELETE FROM users WHERE id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void deleteUser33(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "DELETE FROM users WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.executeQu... | ['Hardcoded Credentials', 'SQL Injection'] |
d1ebd484-8c4d-47df-ad08-c83f692bf851 | public void getUserByEmail34(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail34(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['SQL Injection'] |
23412bd8-51a4-4f84-8075-96484aef8453 | public void getUserByEmail35(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail35(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['Path Traversal', 'SQL Injection'] |
82011783-a3a9-4381-aedc-58df38bfdabe | public void getUserByEmail36(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail36(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['SQL Injection'] |
415de389-cfc4-4712-b176-e1fb4e3ee31e | public void filterLogs37(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM logs WHERE level = '" + param0 + "' AND timestamp > '" + param1 + "'";
ResultSet rs =... | public void filterLogs37(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM logs WHERE level = '?0' AND timestamp > '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, para... | ['Missing Input Validation', 'SQL Injection'] |
3ac0ecc6-0aef-4d13-8115-b5eda9f37e03 | public void getUserByEmail38(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail38(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['SQL Injection'] |
7cc81c51-5eb8-40cc-976d-58a347fdcec8 | public void checkLogin39(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE username = '" + param0 + "' AND password = '" + param1 + "'";
ResultSet r... | public void checkLogin39(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE username = '?0' AND password = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, p... | ['Missing Input Validation', 'SQL Injection'] |
6f0ba8dc-345b-4dd1-b216-5b9ad35b1a0f | public void getOrder40(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM orders WHERE order_id = '" + param0 + "' AND user_id = '" + param1 + "'";
ResultSet rs ... | public void getOrder40(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM orders WHERE order_id = '?0' AND user_id = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, par... | ['Insecure Randomness', 'SQL Injection'] |
ae7fedfb-9bb3-4237-90a9-7d7c7245ec99 | public void getUserByEmail41(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail41(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['SQL Injection'] |
e1c0abd3-667d-4695-9ba0-f7036bd230d7 | public void searchProducts42(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM products WHERE name LIKE '%" + param0 + "%'";
ResultSet rs = stmt.executeQuery(query);
} | public void searchProducts42(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM products WHERE name LIKE '%?0%'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs =... | ['Unvalidated Redirects', 'SQL Injection'] |
21102f37-15df-46e8-ab04-c28ed25b2bdc | public void getUserByEmail43(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail43(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['Hardcoded Credentials', 'SQL Injection'] |
06f85314-c955-4f36-8c30-29c039bc3c54 | public void validateCoupon44(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM coupons WHERE code = '" + param0 + "' AND active = 1";
ResultSet rs = stmt.executeQuery(query);
... | public void validateCoupon44(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM coupons WHERE code = '?0' AND active = 1";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
Resul... | ['Sensitive Data Exposure', 'SQL Injection'] |
8329e373-13fe-4d93-86d3-054340521cae | public void checkLogin45(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE username = '" + param0 + "' AND password = '" + param1 + "'";
ResultSet r... | public void checkLogin45(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE username = '?0' AND password = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, p... | ['SQL Injection'] |
86e97397-3b0c-4e38-b993-f4f73c06e92a | public void getInvoice46(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM invoices WHERE invoice_no = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getInvoice46(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM invoices WHERE invoice_no = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = ps... | ['Insecure Randomness', 'SQL Injection'] |
decc58bf-f5b3-4d95-a788-b40f9ed0e611 | public void deleteUser47(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "DELETE FROM users WHERE id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void deleteUser47(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "DELETE FROM users WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.executeQu... | ['Insecure Randomness', 'SQL Injection'] |
8444281f-d0c3-461a-8228-73b8434767f2 | public void getUserByEmail48(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail48(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['SQL Injection'] |
c8941f3b-e22d-498f-a369-d153f13a4d1b | public void getInvoice49(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM invoices WHERE invoice_no = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getInvoice49(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM invoices WHERE invoice_no = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = ps... | ['Missing Input Validation', 'SQL Injection'] |
5d5d2380-535f-46ff-b7da-693b85bb3f7d | public void filterLogs50(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM logs WHERE level = '" + param0 + "' AND timestamp > '" + param1 + "'";
ResultSet rs =... | public void filterLogs50(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM logs WHERE level = '?0' AND timestamp > '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, para... | ['Weak Cryptography', 'SQL Injection'] |
62ffcf24-fff0-4c97-b8c0-d975a8e952de | public void deleteUser51(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "DELETE FROM users WHERE id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void deleteUser51(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "DELETE FROM users WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.executeQu... | ['Command Injection', 'SQL Injection'] |
0f1d5bd3-1177-4573-bee7-2e72fb3279b6 | public void filterLogs52(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM logs WHERE level = '" + param0 + "' AND timestamp > '" + param1 + "'";
ResultSet rs =... | public void filterLogs52(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM logs WHERE level = '?0' AND timestamp > '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, para... | ['Sensitive Data Exposure', 'SQL Injection'] |
7e620582-54dd-4269-a8a8-c1be2bf26204 | public void deleteUser53(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "DELETE FROM users WHERE id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void deleteUser53(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "DELETE FROM users WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.executeQu... | ['SQL Injection'] |
5a9096ea-17fc-424d-84e4-dbbdfbd9df56 | public void getInvoice54(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM invoices WHERE invoice_no = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getInvoice54(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM invoices WHERE invoice_no = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = ps... | ['SQL Injection'] |
fbbd4ae6-9437-4e1b-aecf-e7a36f93b274 | public void deleteUser55(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "DELETE FROM users WHERE id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void deleteUser55(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "DELETE FROM users WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.executeQu... | ['Insecure Randomness', 'SQL Injection'] |
ec1d9b96-67fe-4256-bbe6-48d8c0cde83d | public void updateProfile56(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "UPDATE users SET name = '" + param1 + "' WHERE id = '" + param0 + "'";
ResultSet rs = stmt.execu... | public void updateProfile56(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "UPDATE users SET name = '?1' WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
p... | ['SQL Injection'] |
ac3e7519-04b1-4a5b-aa19-ece2fb9f2c38 | public void getComments57(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM comments WHERE post_id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getComments57(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM comments WHERE post_id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstm... | ['Insecure Randomness', 'SQL Injection'] |
5762537a-3ef7-49f4-84ee-906db41353f6 | public void getUserByEmail58(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail58(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['SQL Injection'] |
25ebc87d-5cdd-4c8a-be27-e25f7b6a23bb | public void filterLogs59(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM logs WHERE level = '" + param0 + "' AND timestamp > '" + param1 + "'";
ResultSet rs =... | public void filterLogs59(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM logs WHERE level = '?0' AND timestamp > '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, para... | ['Insecure File Handling', 'SQL Injection'] |
64b4809b-c180-4727-9a28-d490dad73b0f | public void getUserByEmail60(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail60(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['Path Traversal', 'SQL Injection'] |
e058a7b0-a085-493b-8262-c1e41ccbe1c0 | public void getComments61(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM comments WHERE post_id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getComments61(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM comments WHERE post_id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstm... | ['Missing Input Validation', 'SQL Injection'] |
33cf861c-7c22-4212-ae13-54433c5e7242 | public void getInvoice62(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM invoices WHERE invoice_no = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getInvoice62(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM invoices WHERE invoice_no = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = ps... | ['Insecure File Handling', 'SQL Injection'] |
21e2bd9d-b272-48cb-8d82-9a959f109d3b | public void deleteUser63(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "DELETE FROM users WHERE id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void deleteUser63(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "DELETE FROM users WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.executeQu... | ['Insecure Randomness', 'SQL Injection'] |
e435dc38-6fee-47ff-b2af-74b22f53aa9d | public void getComments64(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM comments WHERE post_id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getComments64(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM comments WHERE post_id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstm... | ['Hardcoded Credentials', 'SQL Injection'] |
9c03ca4f-5300-48d6-abe4-73211a9b42cd | public void getOrder65(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM orders WHERE order_id = '" + param0 + "' AND user_id = '" + param1 + "'";
ResultSet rs ... | public void getOrder65(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM orders WHERE order_id = '?0' AND user_id = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, par... | ['Sensitive Data Exposure', 'SQL Injection'] |
56e49ae3-51a6-42b0-985f-ffb48bf27a0c | public void checkLogin66(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE username = '" + param0 + "' AND password = '" + param1 + "'";
ResultSet r... | public void checkLogin66(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE username = '?0' AND password = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, p... | ['Insecure Randomness', 'SQL Injection'] |
846dc46f-e0a5-4f34-9be7-4db80d98079f | public void getInvoice67(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM invoices WHERE invoice_no = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getInvoice67(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM invoices WHERE invoice_no = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = ps... | ['Sensitive Data Exposure', 'SQL Injection'] |
7d043254-9bc6-4510-a59d-1b5c035c82f0 | public void checkLogin68(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE username = '" + param0 + "' AND password = '" + param1 + "'";
ResultSet r... | public void checkLogin68(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE username = '?0' AND password = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, p... | ['Insecure Randomness', 'SQL Injection'] |
75436243-c7d8-4c65-9dd7-ee209ee2e08f | public void getInvoice69(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM invoices WHERE invoice_no = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getInvoice69(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM invoices WHERE invoice_no = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = ps... | ['Missing Input Validation', 'SQL Injection'] |
6c6fd908-e246-497d-b111-3460ee4251f0 | public void validateCoupon70(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM coupons WHERE code = '" + param0 + "' AND active = 1";
ResultSet rs = stmt.executeQuery(query);
... | public void validateCoupon70(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM coupons WHERE code = '?0' AND active = 1";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
Resul... | ['Unvalidated Redirects', 'SQL Injection'] |
d4ccc359-209b-4b22-8b62-91a98a55cbbf | public void getComments71(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM comments WHERE post_id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getComments71(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM comments WHERE post_id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstm... | ['Unvalidated Redirects', 'SQL Injection'] |
3333b46d-0a60-4cbd-9255-9bb893f2ef16 | public void deleteUser72(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "DELETE FROM users WHERE id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void deleteUser72(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "DELETE FROM users WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.executeQu... | ['Path Traversal', 'SQL Injection'] |
0b816d81-4c37-4f9f-96d2-7f9a45ba6cdb | public void checkLogin73(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE username = '" + param0 + "' AND password = '" + param1 + "'";
ResultSet r... | public void checkLogin73(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE username = '?0' AND password = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, p... | ['SQL Injection'] |
30f45ec7-27bd-497f-b4b3-665297f656ad | public void getOrder74(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM orders WHERE order_id = '" + param0 + "' AND user_id = '" + param1 + "'";
ResultSet rs ... | public void getOrder74(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM orders WHERE order_id = '?0' AND user_id = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, par... | ['Missing Input Validation', 'SQL Injection'] |
928d6c3d-2cbd-4ec8-87b8-273af65696d4 | public void updateProfile75(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "UPDATE users SET name = '" + param1 + "' WHERE id = '" + param0 + "'";
ResultSet rs = stmt.execu... | public void updateProfile75(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "UPDATE users SET name = '?1' WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
p... | ['Insecure File Handling', 'SQL Injection'] |
a746c6a2-80fb-4b3a-bed7-88dd46b1c99a | public void updateProfile76(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "UPDATE users SET name = '" + param1 + "' WHERE id = '" + param0 + "'";
ResultSet rs = stmt.execu... | public void updateProfile76(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "UPDATE users SET name = '?1' WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
p... | ['Unvalidated Redirects', 'SQL Injection'] |
a26903d9-762a-461e-8d20-0bcfedc7cc61 | public void getOrder77(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM orders WHERE order_id = '" + param0 + "' AND user_id = '" + param1 + "'";
ResultSet rs ... | public void getOrder77(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM orders WHERE order_id = '?0' AND user_id = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, par... | ['Hardcoded Credentials', 'SQL Injection'] |
89bfe1fb-145a-48c1-bc7d-577db06c123b | public void checkLogin78(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE username = '" + param0 + "' AND password = '" + param1 + "'";
ResultSet r... | public void checkLogin78(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE username = '?0' AND password = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, p... | ['Missing Input Validation', 'SQL Injection'] |
7ae496f6-bccc-419f-b40f-ed13c6c43db0 | public void validateCoupon79(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM coupons WHERE code = '" + param0 + "' AND active = 1";
ResultSet rs = stmt.executeQuery(query);
... | public void validateCoupon79(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM coupons WHERE code = '?0' AND active = 1";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
Resul... | ['SQL Injection'] |
2a63c091-3d0b-4f7d-80aa-764949f4f9c3 | public void updateProfile80(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "UPDATE users SET name = '" + param1 + "' WHERE id = '" + param0 + "'";
ResultSet rs = stmt.execu... | public void updateProfile80(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "UPDATE users SET name = '?1' WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
p... | ['SQL Injection'] |
b4a31b24-ba73-49e2-b4d7-e864b0dedfc6 | public void getUserByEmail81(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail81(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['Insecure File Handling', 'SQL Injection'] |
4138356f-de37-47c8-b1af-15f8999937de | public void getUserByEmail82(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail82(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['Sensitive Data Exposure', 'Missing Input Validation', 'SQL Injection'] |
29616b29-8123-4783-81f0-519115670011 | public void deleteUser83(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "DELETE FROM users WHERE id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void deleteUser83(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "DELETE FROM users WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.executeQu... | ['SQL Injection'] |
2b67a015-d30f-45d7-848a-b717cd0827a3 | public void checkLogin84(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE username = '" + param0 + "' AND password = '" + param1 + "'";
ResultSet r... | public void checkLogin84(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE username = '?0' AND password = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, p... | ['Missing Input Validation', 'SQL Injection'] |
72b96f82-f4c0-44bd-b383-9d3f6fbf90a7 | public void updateProfile85(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "UPDATE users SET name = '" + param1 + "' WHERE id = '" + param0 + "'";
ResultSet rs = stmt.execu... | public void updateProfile85(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "UPDATE users SET name = '?1' WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
p... | ['SQL Injection'] |
3b49ea4c-cabc-470d-b182-f7f7f6271c0d | public void validateCoupon86(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM coupons WHERE code = '" + param0 + "' AND active = 1";
ResultSet rs = stmt.executeQuery(query);
... | public void validateCoupon86(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM coupons WHERE code = '?0' AND active = 1";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
Resul... | ['Insecure File Handling', 'SQL Injection'] |
5b2ba5ff-ab4b-4641-b9c0-384071d5f6a5 | public void searchProducts87(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM products WHERE name LIKE '%" + param0 + "%'";
ResultSet rs = stmt.executeQuery(query);
} | public void searchProducts87(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM products WHERE name LIKE '%?0%'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs =... | ['Insecure Randomness', 'SQL Injection'] |
dff3bd5f-75d4-4900-b2f0-bf650068027f | public void validateCoupon88(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM coupons WHERE code = '" + param0 + "' AND active = 1";
ResultSet rs = stmt.executeQuery(query);
... | public void validateCoupon88(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM coupons WHERE code = '?0' AND active = 1";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
Resul... | ['Insecure Randomness', 'SQL Injection'] |
0b7ad5c8-9610-41e5-9976-5d4d4631062c | public void filterLogs89(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM logs WHERE level = '" + param0 + "' AND timestamp > '" + param1 + "'";
ResultSet rs =... | public void filterLogs89(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM logs WHERE level = '?0' AND timestamp > '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, para... | ['Missing Input Validation', 'SQL Injection'] |
eb42a5a8-e6da-4b7f-a914-5280a309730e | public void deleteUser90(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "DELETE FROM users WHERE id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void deleteUser90(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "DELETE FROM users WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.executeQu... | ['Command Injection', 'Missing Input Validation', 'SQL Injection'] |
7b9a6e2e-2433-4df6-ac4e-32b88b6eebec | public void checkLogin91(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE username = '" + param0 + "' AND password = '" + param1 + "'";
ResultSet r... | public void checkLogin91(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE username = '?0' AND password = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, p... | ['SQL Injection'] |
ab541ec9-4504-4ce0-abf9-d99937c2f7d7 | public void searchProducts92(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM products WHERE name LIKE '%" + param0 + "%'";
ResultSet rs = stmt.executeQuery(query);
} | public void searchProducts92(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM products WHERE name LIKE '%?0%'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs =... | ['Hardcoded Credentials', 'SQL Injection'] |
d425e69a-529b-4aeb-8bba-b35a684d54f6 | public void validateCoupon93(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM coupons WHERE code = '" + param0 + "' AND active = 1";
ResultSet rs = stmt.executeQuery(query);
... | public void validateCoupon93(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM coupons WHERE code = '?0' AND active = 1";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
Resul... | ['Weak Cryptography', 'Command Injection', 'SQL Injection'] |
b0205be6-a582-46f3-9c14-208664eb2bc2 | public void getComments94(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM comments WHERE post_id = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getComments94(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM comments WHERE post_id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstm... | ['Missing Input Validation', 'SQL Injection'] |
35b5943d-7feb-457f-b2cf-b28d0b45eb2f | public void getOrder95(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM orders WHERE order_id = '" + param0 + "' AND user_id = '" + param1 + "'";
ResultSet rs ... | public void getOrder95(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM orders WHERE order_id = '?0' AND user_id = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, par... | ['Missing Input Validation', 'SQL Injection'] |
3d96b20c-6bd7-4dbd-8230-5d7a1d95781c | public void getOrder96(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM orders WHERE order_id = '" + param0 + "' AND user_id = '" + param1 + "'";
ResultSet rs ... | public void getOrder96(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM orders WHERE order_id = '?0' AND user_id = '?1'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, par... | ['Command Injection', 'SQL Injection'] |
b8b7b524-4a62-4e83-8048-2d75f0f922f8 | public void getUserByEmail97(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail97(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['Insecure Randomness', 'SQL Injection'] |
47c0c2b0-86f6-4350-882f-f2c768a99c21 | public void updateProfile98(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "UPDATE users SET name = '" + param1 + "' WHERE id = '" + param0 + "'";
ResultSet rs = stmt.execu... | public void updateProfile98(String param0, String param1) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "UPDATE users SET name = '?1' WHERE id = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
p... | ['SQL Injection'] |
7fad713c-afc3-464c-9b0e-666480148d83 | public void getUserByEmail99(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();
String query = "SELECT * FROM users WHERE email = '" + param0 + "'";
ResultSet rs = stmt.executeQuery(query);
} | public void getUserByEmail99(String param0) throws SQLException {
Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
String query = "SELECT * FROM users WHERE email = '?0'";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, param0);
ResultSet rs = pstmt.... | ['Command Injection', 'SQL Injection'] |
End of preview.
No dataset card yet
- Downloads last month
- 3