git-svn-id: http://webgoat.googlecode.com/svn/branches/webgoat-6.0@485 4033779f-a91e-0410-96ef-6bf7bf53c507
		
			
				
	
	
		
			154 lines
		
	
	
		
			4.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			154 lines
		
	
	
		
			4.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
<%@ page contentType="text/html; charset=ISO-8859-1" language="java" 
 | 
						|
	import="org.owasp.webgoat.session.*, org.owasp.webgoat.lessons.DBSQLInjection.DBSQLInjection" 
 | 
						|
	errorPage="" %>
 | 
						|
<%
 | 
						|
	WebSession webSession = ((WebSession)session.getAttribute("websession"));
 | 
						|
	Employee employee = (Employee) session.getAttribute("DBSQLInjection." + DBSQLInjection.EMPLOYEE_ATTRIBUTE_KEY);
 | 
						|
//	int myUserId = getIntSessionAttribute(webSession, "DBSQLInjection." + DBSQLInjection.USER_ID);
 | 
						|
%>
 | 
						|
		<div class="lesson_title_box"><strong>Welcome Back </strong><span class="lesson_text_db"><%=webSession.getUserNameInLesson()%></span></div>
 | 
						|
		<div class="lesson_text">
 | 
						|
				<Table>
 | 
						|
				<TR><TD>
 | 
						|
						First Name:
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<%=employee.getFirstName()%>
 | 
						|
					</TD>
 | 
						|
					<TD>				
 | 
						|
						Last Name:
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
					 	<%=employee.getLastName()%>
 | 
						|
					</TD>
 | 
						|
				</TR>
 | 
						|
				<TR><TD>				
 | 
						|
						Street: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<%=employee.getAddress1()%>
 | 
						|
					</TD>
 | 
						|
					<TD>				
 | 
						|
						City/State: 
 | 
						|
					<TD>
 | 
						|
						<%=employee.getAddress2()%>
 | 
						|
					</TD>
 | 
						|
				</TR>
 | 
						|
				<TR><TD>
 | 
						|
						Phone: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<%=employee.getPhoneNumber()%>
 | 
						|
					</TD>
 | 
						|
					<TD>				
 | 
						|
						Start Date: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<%=employee.getStartDate()%>
 | 
						|
					</TD>
 | 
						|
				</TR>
 | 
						|
				<TR><TD>
 | 
						|
			    		SSN: 
 | 
						|
			    	</TD>
 | 
						|
			    	<TD>
 | 
						|
			    		<%=employee.getSsn()%>
 | 
						|
					</TD>
 | 
						|
					<TD>				
 | 
						|
						Salary: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<%=employee.getSalary()%>
 | 
						|
					</TD>
 | 
						|
				</TR>
 | 
						|
				<TR><TD>
 | 
						|
						Credit Card: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<%=employee.getCcn()%>
 | 
						|
					</TD>
 | 
						|
					<TD>				
 | 
						|
						Credit Card Limit: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<%=employee.getCcnLimit()%>
 | 
						|
					</TD>
 | 
						|
				</TR>
 | 
						|
				<TR><TD>
 | 
						|
						Comments: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<%=employee.getPersonalDescription()%>
 | 
						|
					</TD>
 | 
						|
					<TD>				
 | 
						|
						Manager: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<%=employee.getManager()%>
 | 
						|
					</TD>	
 | 
						|
				</TR>
 | 
						|
				<TR><TD>
 | 
						|
						Disciplinary Explanation: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<%=employee.getDisciplinaryActionNotes()%>
 | 
						|
					</TD>
 | 
						|
					<TD>				
 | 
						|
						Disciplinary Action Dates: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<%=employee.getDisciplinaryActionDate()%>
 | 
						|
					</TD>
 | 
						|
				</TR>
 | 
						|
				</Table>
 | 
						|
		</div>
 | 
						|
		<div class="lesson_buttons_bottom">
 | 
						|
		    <table width="460" height="20" border="0" cellpadding="0" cellspacing="0">
 | 
						|
                 <tr>
 | 
						|
                 	<td width="50">
 | 
						|
					 <%					
 | 
						|
					 if (webSession.isAuthorizedInLesson(webSession.getUserIdInLesson(), DBSQLInjection.LISTSTAFF_ACTION))
 | 
						|
					 {
 | 
						|
					 %>                	
 | 
						|
						<form method="POST" action="<%=webSession.getCurrentLesson().getFormAction()%>">
 | 
						|
							<input type="hidden" name="<%=DBSQLInjection.EMPLOYEE_ID%>" value="<%=employee.getId()%>">
 | 
						|
							<input type="submit" name="action" value="<%=DBSQLInjection.LISTSTAFF_ACTION%>"/>
 | 
						|
						</form>
 | 
						|
					 <%
 | 
						|
					 }
 | 
						|
					 %>
 | 
						|
					 </td>
 | 
						|
		             <td width="50">
 | 
						|
					 <%					
 | 
						|
					 if (webSession.isAuthorizedInLesson(webSession.getUserIdInLesson(), DBSQLInjection.EDITPROFILE_ACTION))
 | 
						|
					 {
 | 
						|
					 %>
 | 
						|
						<form method="POST" action="<%=webSession.getCurrentLesson().getFormAction()%>">
 | 
						|
							<input type="hidden" name="<%=DBSQLInjection.EMPLOYEE_ID%>" value="<%=employee.getId()%>">
 | 
						|
							<input type="submit" name="action" value="<%=DBSQLInjection.EDITPROFILE_ACTION%>"/>
 | 
						|
						</form>
 | 
						|
					<%
 | 
						|
					}
 | 
						|
					%>
 | 
						|
					</td>					
 | 
						|
                    <td width="60">
 | 
						|
					<%					
 | 
						|
					if (webSession.isAuthorizedInLesson(webSession.getUserIdInLesson(), DBSQLInjection.DELETEPROFILE_ACTION))
 | 
						|
					{
 | 
						|
					%>
 | 
						|
						<form method="POST" action="<%=webSession.getCurrentLesson().getFormAction()%>">
 | 
						|
							<input type="hidden" name="<%=DBSQLInjection.EMPLOYEE_ID%>" value="<%=employee.getId()%>">
 | 
						|
							<input type="submit" name="action" value="<%=DBSQLInjection.DELETEPROFILE_ACTION%>"/>
 | 
						|
						</form>
 | 
						|
					<%
 | 
						|
					}
 | 
						|
					%>
 | 
						|
					</td>
 | 
						|
                      <td width="190"> </td>
 | 
						|
                      <td width="76">
 | 
						|
						<form method="POST">
 | 
						|
							<input type="submit" name="action" value="<%=DBSQLInjection.LOGOUT_ACTION%>"/>
 | 
						|
						</form>
 | 
						|
					</td>
 | 
						|
				</tr>
 | 
						|
         	</table>
 | 
						|
		</div> |