You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewRuntimeException("Error: unexpected character in query '"+ query +"' using connection jdbc:mysql://localhost:3306/insecureinc?user=svc.database.insecure.inc&password=OWASP_R0ckZ!");
16
+
}
17
+
catch (Exception e){
18
+
e.printStackTrace(response.getWriter());
19
+
}
20
+
}
21
+
else{
22
+
alertVisibility="";
23
+
}
24
+
}
25
+
%>
26
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
The developer of this part of the site has not implemented secure error handling. As a result, sensitive information about how the application is built can leak and be exploited.
### Solution for "Generation of Error Message Containing Sensitive Information" challenge
2
+
3
+
Error messages can contain detailed information about how the application operates, as well as sensitive information about its environment, users, or associated data.
4
+
Instead of allowing detailed error messages to be returned to the user, generic error messages with an error ID or code should be returned instead.
5
+
The details of the error can be saved to the application logs, accessible only to the application owners.
6
+
7
+
8
+
To pass this challenge:
9
+
10
+
- Become familiar with the Insecure Inc. archive search after logging in with the guest account.
11
+
- Invoke an error in the archive search by entering characters that might be problematic.
12
+
- Review error details for credentials that can be used for authentication.
Copy file name to clipboardExpand all lines: trainingportal/static/lessons/modules.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
"name":"Black Belt",
18
18
"summary":"Common software security flaws",
19
19
"description":"This module is based on the SANS Top 25 - Most Dangerous Software Flaws. Lessons are entry level difficulty aimed at introducing the concepts of vulnerability, exploit and software defense.",
0 commit comments