forked from WebGoat/WebGoat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added lesson (no content yet) for explaining nist password standards.
- Loading branch information
1 parent
b02a01d
commit 91e6f70
Showing
10 changed files
with
110 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>secure-passwords</artifactId> | ||
<packaging>jar</packaging> | ||
<parent> | ||
<groupId>org.owasp.webgoat.lesson</groupId> | ||
<artifactId>webgoat-lessons-parent</artifactId> | ||
<version>v8.0.0.SNAPSHOT</version> | ||
</parent> | ||
</project> |
39 changes: 39 additions & 0 deletions
39
webgoat-lessons/secure-passwords/src/main/java/org/owasp/webgoat/plugin/SecurePasswords.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.owasp.webgoat.plugin; | ||
|
||
import com.beust.jcommander.internal.Lists; | ||
import org.owasp.webgoat.lessons.Category; | ||
import org.owasp.webgoat.lessons.NewLesson; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author BenediktStuhrmann | ||
* @since 12/2/18. | ||
*/ | ||
public class SecurePasswords extends NewLesson { | ||
|
||
@Override | ||
public Category getDefaultCategory() { | ||
return Category.AUTHENTICATION; | ||
} | ||
|
||
@Override | ||
public List<String> getHints() { | ||
return Lists.newArrayList(); | ||
} | ||
|
||
@Override | ||
public Integer getDefaultRanking() { | ||
return 3; | ||
} | ||
|
||
@Override | ||
public String getTitle() { | ||
return "secure-passwords.title"; | ||
} | ||
|
||
@Override | ||
public String getId() { | ||
return "SecurePasswords"; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
webgoat-lessons/secure-passwords/src/main/resources/html/SecurePasswords.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
|
||
<html xmlns:th="http://www.thymeleaf.org"> | ||
|
||
<div class="lesson-page-wrapper"> | ||
<div class="adoc-content" th:replace="doc:SecurePasswords_intro.adoc"></div> | ||
</div> | ||
|
||
<div class="lesson-page-wrapper"> | ||
<div class="adoc-content" th:replace="doc:SecurePasswords_1.adoc"></div> | ||
</div> | ||
|
||
</html> |
1 change: 1 addition & 0 deletions
1
webgoat-lessons/secure-passwords/src/main/resources/i18n/WebGoatLabels.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
secure-passwords.title=Secure Passwords |
35 changes: 35 additions & 0 deletions
35
webgoat-lessons/secure-passwords/src/main/resources/js/questions_cia.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"questions": [{ | ||
"text": "How could an intruder harm the security goal of confidentiality?", | ||
"solutions": { | ||
"1": "By deleting all the databases.", | ||
"2": "By stealing a database where general configuration information for the system is stored.", | ||
"3": "By stealing a database where names and emails are stored and uploading it to a website.", | ||
"4": "Confidentiality can't be harmed by an intruder." | ||
} | ||
}, { | ||
"text": "How could an intruder harm the security goal of integrity?", | ||
"solutions": { | ||
"1": "By changing the names and emails of one or more users stored in a database.", | ||
"2": "By listening to incoming and outgoing network traffic.", | ||
"3": "By bypassing authentication mechanisms that are in place to manage database access.", | ||
"4": "Integrity can only be harmed when the intruder has physical access to the database storage." | ||
} | ||
}, { | ||
"text": "How could an intruder harm the security goal of availability?", | ||
"solutions": { | ||
"1": "By exploiting bugs in the systems software to bypass authentication mechanisms for databases.", | ||
"2": "By redirecting emails with sensitive data to other individuals.", | ||
"3": "Availability can only be harmed by unplugging the power supply of the storage devices.", | ||
"4": "By launching a denial of service attack on the servers." | ||
} | ||
}, { | ||
"text": "What happens if at least one of the CIA security goals is harmed?", | ||
"solutions": { | ||
"1": "A system can be considered safe until all the goals are harmed. Harming one goal has no effect on the systems security.", | ||
"2": "The systems security is compromised even if only one goal is harmed.", | ||
"3": "It's not that bad when an attacker reads or changes data, at least some data is still available, hence only when the goal of availability is harmed the security of the system is compromised.", | ||
"4": "It shouldn't be a problem if an attacker changes data or makes it unavailable, but reading sensitive data is not tolerable. Theres only a problem when confidentiality is harmed." | ||
} | ||
}] | ||
} |
1 change: 1 addition & 0 deletions
1
...ssons/secure-passwords/src/main/resources/lessonPlans/en/SecurePasswords_1.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
== 1 |
2 changes: 2 additions & 0 deletions
2
...s/secure-passwords/src/main/resources/lessonPlans/en/SecurePasswords_intro.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
== Secure Passwords | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters