Skip to content
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
767b331
#44 front end JavaScript library with key obfuscated
drnow4u Jan 31, 2022
f1a35d8
#44 front end JavaScript library with key obfuscated
drnow4u Feb 1, 2022
f938454
#44 front end JavaScript library with key obfuscated
drnow4u Feb 1, 2022
4c05c29
Merge branch 'master' of https://github.com/commjoen/wrongsecrets int…
drnow4u Mar 16, 2022
775c412
#44 front end JavaScript library with key obfuscated
drnow4u Mar 16, 2022
f930545
remove unused Java imports
drnow4u Mar 21, 2022
0358336
#44 front end JavaScript library with key obfuscated
drnow4u Mar 23, 2022
ff94b7e
#44 front end JavaScript library with key obfuscated
drnow4u Mar 23, 2022
6f192d6
#44 front end JavaScript library with key obfuscated
drnow4u Mar 23, 2022
673f40c
Merge branch 'master' of https://github.com/commjoen/wrongsecrets int…
drnow4u Mar 23, 2022
8f5625c
#44 front end JavaScript library with key obfuscated
drnow4u Mar 23, 2022
a285900
#44 front end JavaScript library with key obfuscated - review
drnow4u Mar 28, 2022
7d76c30
#44 front end JavaScript library with key obfuscated - mvn clean pack…
drnow4u Mar 28, 2022
a973b1a
#44 front end JavaScript library with key obfuscated - mvn clean pack…
drnow4u Mar 28, 2022
1ec4543
#44 front end JavaScript library with key obfuscated - rename challen…
drnow4u Mar 31, 2022
ba15bea
Merge branch 'master' of https://github.com/commjoen/wrongsecrets int…
drnow4u Mar 31, 2022
7b7b540
Update POM file with new version: 1.3.10
drnow4u Apr 2, 2022
3ab6084
Update POM file with new version: 1.3.10
drnow4u Apr 2, 2022
08a53d2
Update POM file with new version: 1.3.10
drnow4u Apr 2, 2022
2cd5347
Update POM file with new version: ^C
drnow4u Apr 2, 2022
9c1761d
Update POM file with new version: ^C
drnow4u Apr 2, 2022
2b571ae
Update POM file with new version: 1.3.10
drnow4u Apr 2, 2022
236f27f
#44 front end JavaScript library with key obfuscated - rename challen…
drnow4u Apr 2, 2022
0613527
#44 front end JavaScript library with key obfuscated - rename challen…
drnow4u Apr 2, 2022
2b7222a
Merge branch 'master' of https://github.com/commjoen/wrongsecrets int…
drnow4u Apr 2, 2022
85438d8
#44 front end JavaScript library with key obfuscated - review
drnow4u Apr 2, 2022
bebef99
#44 front end JavaScript library with key obfuscated - review
drnow4u Apr 2, 2022
7072b91
#44 front end JavaScript library with key obfuscated - review
drnow4u Apr 2, 2022
fbf3a0d
#44 front end JavaScript library with key obfuscated - review
drnow4u Apr 2, 2022
0f9fe21
#44 front end JavaScript library with key obfuscated - review
drnow4u Apr 4, 2022
b57a5e9
#44 front end JavaScript library with key obfuscated - review
drnow4u Apr 4, 2022
532b3f5
Merge branch 'master' of https://github.com/commjoen/wrongsecrets int…
drnow4u Apr 4, 2022
b57c98e
#44 front end JavaScript library with key obfuscated - review
drnow4u Apr 5, 2022
130b6e5
#44 front end JavaScript library with key obfuscated - update profile…
drnow4u Apr 6, 2022
6f6b129
Update src/main/resources/explanations/challenge16.adoc
drnow4u Apr 8, 2022
f57efea
Update src/main/resources/explanations/challenge16.adoc
drnow4u Apr 8, 2022
6aa7a13
Update src/main/resources/explanations/challenge16.adoc
drnow4u Apr 8, 2022
bb16b75
Update src/main/resources/explanations/challenge16_hint.adoc
drnow4u Apr 8, 2022
8e0a505
Update src/main/resources/explanations/challenge16_reason.adoc
drnow4u Apr 8, 2022
2b3cc09
Merge branch 'master' into #44-JavaScript_library_with_key_obfuscated
drnow4u Apr 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/scripts/docker-create-and-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ echo "Start building assets required for container"

echo "generating challenge 12-data"
openssl rand -base64 32 | tr -d '\n' > yourkey.txt
echo "generating challenge 16-data"
SECENDKEYPART1=$(openssl rand -base64 5 | tr -d '\n')
SECENDKEYPART2=$(openssl rand -base64 3 | tr -d '\n')
SECENDKEYPART3=$(openssl rand -base64 2 | tr -d '\n')
SECENDKEYPART4=$(openssl rand -base64 3 | tr -d '\n')
echo -n "${SECENDKEYPART1}9${SECENDKEYPART2}6${SECENDKEYPART3}2${SECENDKEYPART4}7" > secondkey.txt
printf "function secret() { \n var password = \"$SECENDKEYPART1\" + 9 + \"$SECENDKEYPART2\" + 6 + \"$SECENDKEYPART3\" + 2 + \"$SECENDKEYPART4\" + 7;\n return password;\n }\n" > ../../js/index.js

# preps for #178:
#echo "Building and publishing to maven central, did you set: a settings.xml file with:"
#echo "<settings>"
Expand Down Expand Up @@ -69,6 +77,9 @@ docker buildx build --platform linux/amd64,linux/arm64 -t jeroenwillemsen/wrongs
docker buildx build --platform linux/amd64,linux/arm64 -t jeroenwillemsen/wrongsecrets:$tag-local-vault --build-arg "$buildarg" --build-arg "PORT=8081" --build-arg "argBasedVersion=$tag" --build-arg "spring_profile=local-vault" --push ./../../.
docker buildx build --platform linux/amd64,linux/arm64 -t jeroenwillemsen/wrongsecrets:$tag-k8s-vault --build-arg "$buildarg" --build-arg "PORT=8081" --build-arg "argBasedVersion=$tag" --build-arg "spring_profile=kubernetes-vault" --push ./../../.

echo "restoring temporal change"
git restore js/index.js

echo "tagging version"
git tag -a $tag -m "${message}"
git push --tags
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ azure/k8s/pod-id.yml

# Challenge 12 ;-)
.github/scripts/yourkey.txt

# Node JS
js/node/
js/node_modules/
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Welcome to the OWASP WrongSecrets p0wnable app. With this app, we have packed various ways of how to not store your secrets. These can help you to realize whether your secret management is ok. The challenge is to find all the different secrets by means of various tools and techniques.

Can you solve all the 15 challenges?
Can you solve all the 16 challenges?
![screenshot.png](screenshot.png)

## Support
Expand Down Expand Up @@ -39,6 +39,7 @@ Now you can try to find the secrets by means of solving the challenge offered at
- [localhost:8080/challenge/13](http://localhost:8080/challenge/13)
- [localhost:8080/challenge/14](http://localhost:8080/challenge/14)
- [localhost:8080/challenge/15](http://localhost:8080/challenge/15)
- [localhost:8080/challenge/16](http://localhost:8080/challenge/16)

Note that these challenges are still very basic, and so are their explanations. Feel free to file a PR to make them look better ;-).

Expand Down
4 changes: 4 additions & 0 deletions js/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function secret() {
var password = "if you see this please fix the JavaScript setup";
return password;
}
Loading