-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolution.txt
More file actions
29 lines (23 loc) · 940 Bytes
/
solution.txt
File metadata and controls
29 lines (23 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
SAST
String sql = "select * from users where (email =? and password =?)";
Connection connection = pool.getConnection();
//Statement statement = connection.createStatement();
PreparedStatement statement = connection.preparedStatement(sql);
statement.setString(1, email);
statement.setString(2, token);
HttpSession session = request.getSession();
String role = (String)session.getAttribute("role");
if (role.equals(ADMIN)) {
//ResultSet result = statement.executeQuery(sql);
ResultSet result = statement.executeQuery();
statement.close();
connection.close();
}
SCA
org.json version changes from 20090211 to 20200518
SCS
ua-parser-js version changes from 0.7.29 to 0.7.30
KICS
RUN user add -ms /bin/bash test_user
USER test_user
WORKDIR /home/test_user