Skip to content

Commit

Permalink
Fixed minor issues for properties and starting WebGoat
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaars committed Nov 2, 2017
1 parent bb3bc9b commit 8729d9b
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ deploy:
branch: develop
- provider: releases
skip_cleanup: true
overwrite: true
api_key:
#api-key from webgoat-github user
secure: pJOLBnl6427PcVg/tVy/qB18JC7b8cKpffau+IP0pjdSt7KUfBdBY3QuJ7mrM65zRoVILzggLckaew2PlRmYQRdumyWlyRn44XiJ9KO4n6Bsufbz+ictB4ggtozpp9+I9IIUh1TmqypL9lhkX2ONM9dSHmyblYpAAgMuYSK8FYc=
Expand Down
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ _Please note: this version may not be completely in sync with the develop branch
Download the latest WebWolf release from [https://github.com/WebGoat/WebGoat/releases](https://github.com/WebGoat/WebGoat/releases)

```Shell
java -jar webwolf-<<version>>.jar
java -jar webgoat-server-<<version>>.jar
```
Expand Down
11 changes: 5 additions & 6 deletions webgoat-container/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,15 @@ webgoat.database.connection.string=jdbc:hsqldb:mem:{USER}
webgoat.default.language=en
webgoat.embedded.mongo=${WG_INTERNAL_MONGO:true}

webwolf.port=8081
webwolf.url=http://localhost:${webwolf.port}/WebWolf
webworf.url.landingpage=http://localhost:${webwolf.port}/landing
webworf.url.mail=http://localhost:${webwolf.port}/mail
webwolf.host=${WEBWOLF_HOST:localhost}
webwolf.port=${WEBWOLF_PORT:8081}
webwolf.url=http://${webwolf.host}:${webwolf.port}/WebWolf
webworf.url.landingpage=http://${webwolf.host}:${webwolf.port}/landing
webworf.url.mail=http://${webwolf.host}:${webwolf.port}/mail

spring.jackson.serialization.indent_output=true
spring.jackson.serialization.write-dates-as-timestamps=false

spring.activemq.brokerUrl=tcp://${WG_MQ_HOST:localhost}:${WG_MQ_PORT:61616}

spring.data.mongodb.host=${WG_MONGO_HOST:localhost}
spring.data.mongodb.port=${WG_MONGO_PORT:27017}
spring.data.mongodb.database=webgoat
Expand Down
1 change: 1 addition & 0 deletions webgoat-lessons/sol.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ [email protected]' --
101 or 1=1

Smith' union select userid,user_name, password,cookie,cookie, cookie,userid from user_system_data --
Smith' union select all 1, '2' ,user_name,password, 'MC', cookie, 2 from user_system_data --

## XXE ##

Expand Down
11 changes: 8 additions & 3 deletions webwolf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
FROM openjdk:8-jre-slim

ARG webwolf_version=8.0-SNAPSHOT

RUN useradd --home-dir /home/webwolf --create-home -U webwolf

RUN apt-get update; apt-get install curl -y

COPY start.sh /home/webwolf/start.sh
RUN chmod +x /home/webwolf/start.sh

USER webwolf
RUN cd /home/webwolf/
COPY target/webwolf-8.0-SNAPSHOT.jar /home/webwolf/webwolf.jar
COPY start.sh /home/webwolf/start.sh
COPY target/webwolf-${webwolf_version}.jar /home/webwolf/webwolf.jar
5 changes: 1 addition & 4 deletions webwolf/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,12 @@ multipart.max-request-size=1Mb
webwolf.fileserver.location=${java.io.tmpdir}/webwolf-fileserver


spring.data.mongodb.host=${WG_MONGO_HOST:localhost}
spring.data.mongodb.host=${WG_MONGO_HOST:}
spring.data.mongodb.port=${WG_MONGO_PORT:27017}
spring.data.mongodb.database=webgoat

spring.jackson.serialization.indent_output=true
spring.jackson.serialization.write-dates-as-timestamps=false

spring.activemq.broker-url=tcp://${WG_MQ_HOST:localhost}:${WG_MQ_PORT:61616}
spring.activemq.in-memory=true

#For static file refresh ... and faster dev :D
spring.devtools.restart.additional-paths=webwolf/src/main/resources/static/
2 changes: 1 addition & 1 deletion webwolf/src/main/resources/templates/requests.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<p>
Challenges in which you need to call your hacker machine WebWolf offers a simple httpd
server functionality which only logs the incoming request. You can use the following URL:
http://localhost:8081/ and the incoming request will be available below.
http://webwolf/landing/* and the incoming request will be available below.
</p>
<p>
This is by no means a substitution of httpd but it offers enough functionality to callback to a safe
Expand Down

0 comments on commit 8729d9b

Please sign in to comment.