Skip to content

Commit affe17b

Browse files
committed
add-xss5-challenge
1 parent 5408dac commit affe17b

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

src/main/webapp/header.jsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
<li> <a href="<%=path%>/vulnerability/xss/xss2.jsp">Challenge 2</a></li>
7171
<li> <a href="<%=path%>/vulnerability/xss/xss3.jsp">Challenge 3</a></li>
7272
<li> <a href="<%=path%>/vulnerability/xss/xss4.jsp">Challenge 4</a></li>
73+
<li> <a href="<%=path%>/vulnerability/xss/xss5.jsp">Challenge 5</a></li>
7374
</ul>
7475
</li>
7576

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<%@ page import="java.net.URLDecoder" %>
2+
<%@ include file="/header.jsp" %>
3+
<%
4+
String fullURL = request.getRequestURI();
5+
String qs = request.getQueryString();
6+
if (qs != null) {
7+
try { qs = URLDecoder.decode(qs, "UTF-8"); } catch (Exception e) {}
8+
fullURL += "?" + qs;
9+
}
10+
%>
11+
<h2>Latest Updates</h2>
12+
<p>Stay informed about the latest changes and announcements on our site.</p>
13+
<br/>
14+
Share this page: <a href="<%= fullURL %>">permalink</a>
15+
<br/><br/>
16+
<%@ include file="/footer.jsp" %>

0 commit comments

Comments
 (0)