-
-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes #648: Add the localstorage challenge #716
Conversation
What kind of changes does this PR include? - [ ] Fixes or refactors - [ ✔] A new challenge - [ ] Additional documentation - [ ] Something else Description This PR adds a new challenge i.e challenge 29. Relations Closes OWASP#648 References LocalStorage Checklist: - [✔ ] All the contributions made are solely the work of me and my co-authors - [ ✔] I tested the changes in this PR (if applicable) - [✔ ] I added unit tests to ensure my change works (when change in Java or on front-end code) - [✔ ] The PR passes pre-commit hooks and automated tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Novice-expert ! Thank you very much for your first submission for a Challenge in OWASP WrongSecrets! That's a great first step! Please have a look at the feedback and update the PR :).
src/main/java/org/owasp/wrongsecrets/challenges/docker/Challenge29.java
Outdated
Show resolved
Hide resolved
src/main/java/org/owasp/wrongsecrets/challenges/docker/Challenge29.java
Outdated
Show resolved
Hide resolved
src/test/java/org/owasp/wrongsecrets/challenges/docker/Challenge29Test.java
Outdated
Show resolved
Hide resolved
separates controller, makes random local storage string
src/main/java/org/owasp/wrongsecrets/challenges/ChallengesController.java
Outdated
Show resolved
Hide resolved
re-added missing swagger annotations
src/main/java/org/owasp/wrongsecrets/challenges/ChallengesController.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there! Can you move the secret key to its own controller class with challenge29 as its member? And can you update the tests to tests that controller as well?
src/main/java/org/owasp/wrongsecrets/challenges/ChallengesController.java
Outdated
Show resolved
Hide resolved
Adds dedicated rest controller for challenge 29
Update index.html endpoint for restcontroller
dedicated Rest Controller class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allrighty! We are almost there! Looks much better than before: minor remarks for now :)
src/main/java/org/owasp/wrongsecrets/challenges/docker/Challenge29.java
Outdated
Show resolved
Hide resolved
src/main/java/org/owasp/wrongsecrets/challenges/docker/Challenge29.java
Outdated
Show resolved
Hide resolved
src/main/java/org/owasp/wrongsecrets/challenges/docker/Challenge29.java
Outdated
Show resolved
Hide resolved
src/test/java/org/owasp/wrongsecrets/challenges/docker/Challenge29Test.java
Outdated
Show resolved
Hide resolved
src/main/java/org/owasp/wrongsecrets/challenges/ChallengeRestController.java
Show resolved
Hide resolved
src/main/java/org/owasp/wrongsecrets/challenges/docker/Challenge29.java
Outdated
Show resolved
Hide resolved
1:- Added hidden annotation so that it doesn't through swapper API generation. 2:- Modified class Challenge29 code as per general and uniform practice. 3:- Consequently, Modified class Challenge29Test
Now the maven builds successfully. The ChallengeRestControllerTest works fine!
Adds ctf handler snippet
fixes identation
readds comments in challenge.java
fixes checkstyles
fixes identation and challenge.java
renames challenge29 to challenge30
Renames explanations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks to be a good challenge! @bendehaan can you please check the texts?
Pleave have a look at the test failures... something seems to go wrong.. |
fixes index.html to reduce load time
updates index.html, fixes indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Almost there! @bendehaan can you do a text review please :-)?
src/main/java/org/owasp/wrongsecrets/challenges/ChallengesController.java
Outdated
Show resolved
Hide resolved
…roller.java Co-authored-by: Ben de Haan <53901866+bendehaan@users.noreply.github.com>
Co-authored-by: Ben de Haan <53901866+bendehaan@users.noreply.github.com>
Thank you @Novice-expert ! |
What kind of changes does this PR include?
Description
This PR adds a new challenge i.e challenge 29.
Relations
Closes #648
References
Checklist: