Skip to content

Commit 9bb1cb8

Browse files
committed
WEB-68 Service to return WebGoat Version and Build Number
-- add email, email list, version number and build number as parameters to about page
1 parent 0074b7e commit 9bb1cb8

File tree

3 files changed

+33
-20
lines changed

3 files changed

+33
-20
lines changed

src/main/java/org/owasp/webgoat/controller/Start.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ public ModelAndView start(HttpServletRequest request,
5656

5757
String contactEmail = servletContext.getInitParameter("email");
5858
model.addObject("contactEmail", contactEmail);
59+
String emailList = servletContext.getInitParameter("emaillist");
60+
model.addObject("emailList", emailList);
61+
5962
Application app = Application.getInstance();
6063
logger.info("Setting application properties: " + app);
6164
model.addObject("version", app.getVersion());

src/main/webapp/WEB-INF/pages/about.jsp

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,27 @@
1010
</div>
1111
<div class="modal-body modal-scroll">
1212
<p>Thanks for hacking The Goat!</p>
13-
<p>WebGoat is a demonstration of common web application flaws. The
14-
associated exercises are intended to provide hands-on experience with
15-
techniques aimed at demonstrating and testing application penetration.
13+
<p>WebGoat is a demonstration of common web application flaws. The
14+
associated exercises are intended to provide hands-on experience with
15+
techniques aimed at demonstrating and testing application penetration.
1616
</p>
17-
<p>From the entire WebGoat team, we appreciate your interest and efforts
18-
in making applications not just better, but safer and more secure for
19-
everyone. We, as well as our sacrificial goat, thank you.</p>
20-
<p>Version: 6.0</p>
17+
<p>From the entire WebGoat team, we appreciate your interest and efforts
18+
in making applications not just better, but safer and more secure for
19+
everyone. We, as well as our sacrificial goat, thank you.</p>
20+
<p>
21+
Version: ${version},&nbsp;Build: ${build}
22+
</p>
23+
2124
<div class="row">
22-
<div class="col-md-6">
23-
<p>Contact us:
24-
<ul>
25-
<li>WebGoat mailing list: [email protected]</li>
26-
<li>Bruce Mayhew: [email protected]</li>
27-
</ul>
28-
</p>
29-
</div>
30-
</div>
25+
<div class="col-md-6">
26+
<p>Contact us:
27+
<ul>
28+
<li>WebGoat mailing list: ${emailList}</li>
29+
<li>Bruce Mayhew: ${contactEmail}</li>
30+
</ul>
31+
</p>
32+
</div>
33+
</div>
3134
<div class="row">
3235
<div class="col-md-6">
3336
<p>WebGoat Authors
@@ -86,9 +89,9 @@
8689
</ul>
8790
</p>
8891
<p>Did we miss you? Our sincere apologies, as we know there have
89-
been many contributors over the years. If your name does not
90-
appear in any of the lists above, please send us a note. We'll
91-
get you added with no further sacrifices required.</p>
92+
been many contributors over the years. If your name does not
93+
appear in any of the lists above, please send us a note. We'll
94+
get you added with no further sacrifices required.</p>
9295
</div>
9396
</div>
9497
</div>

src/main/webapp/WEB-INF/web.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,19 @@
2727
-->
2828
<context-param>
2929
<param-name>email</param-name>
30-
<param-value>WebGoat@owasp.org</param-value>
30+
<param-value>webgoat@owasp.org</param-value>
3131
<description>
3232
The EMAIL address of the administrator to whom questions
3333
and comments about this application should be addressed.
3434
</description>
3535
</context-param>
36+
<context-param>
37+
<param-name>emaillist</param-name>
38+
<param-value>[email protected]</param-value>
39+
<description>
40+
The EMAIL address of the webgoat email list
41+
</description>
42+
</context-param>
3643
<!-- spring MVC -->
3744
<context-param>
3845
<param-name>contextConfigLocation</param-name>

0 commit comments

Comments
 (0)