This "lesson" is to be used as a base for the rest of the LAB lessons. This should help to reduce the amount of duplication across the lessons. git-svn-id: http://webgoat.googlecode.com/svn/trunk@150 4033779f-a91e-0410-96ef-6bf7bf53c507
		
			
				
	
	
		
			157 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			157 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
<%@ page contentType="text/html; charset=ISO-8859-1" language="java" 
 | 
						|
	import="org.owasp.webgoat.session.*, org.owasp.webgoat.lessons.GoatHillsFinancial.GoatHillsFinancial" 
 | 
						|
	errorPage="" %>
 | 
						|
<%
 | 
						|
	Employee employee = (Employee) session.getAttribute("GoatHillsFinancial." + GoatHillsFinancial.EMPLOYEE_ATTRIBUTE_KEY);
 | 
						|
	WebSession webSession = ((WebSession)session.getAttribute("websession"));
 | 
						|
//	int myUserId = getIntSessionAttribute(webSession, "GoatHillsFinancial." + GoatHillsFinancial.USER_ID);
 | 
						|
%>
 | 
						|
		<div class="lesson_title_box"><strong>Welcome Back </strong><span class="lesson_text_db"><%=webSession.getUserNameInLesson()%></span> - View Profile Page</div>
 | 
						|
		<div class="lesson_text">
 | 
						|
				<Table>
 | 
						|
				<TR><TD>
 | 
						|
						First Name:
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<span class="lesson_text_db"><%=employee.getFirstName()%></span>
 | 
						|
					</TD>
 | 
						|
					<TD>				
 | 
						|
						Last Name:
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
					 	<span class="lesson_text_db"><%=employee.getLastName()%></span>
 | 
						|
					</TD>
 | 
						|
				</TR>
 | 
						|
				<TR><TD>				
 | 
						|
						Street: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<span class="lesson_text_db"><%=employee.getAddress1()%></span>
 | 
						|
					</TD>
 | 
						|
					<TD>				
 | 
						|
						City/State: 
 | 
						|
					<TD>
 | 
						|
						<span class="lesson_text_db"><%=employee.getAddress2()%></span>
 | 
						|
					</TD>
 | 
						|
				</TR>
 | 
						|
				<TR><TD>
 | 
						|
						Phone: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<span class="lesson_text_db"><%=employee.getPhoneNumber()%></span>
 | 
						|
					</TD>
 | 
						|
					<TD>				
 | 
						|
						Start Date: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<span class="lesson_text_db"><%=employee.getStartDate()%></span>
 | 
						|
					</TD>
 | 
						|
				</TR>
 | 
						|
				<TR><TD>
 | 
						|
			    		SSN: 
 | 
						|
			    	</TD>
 | 
						|
			    	<TD>
 | 
						|
			    		<span class="lesson_text_db"><%=employee.getSsn()%></span>
 | 
						|
					</TD>
 | 
						|
					<TD>				
 | 
						|
						Salary: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<span class="lesson_text_db"><%=employee.getSalary()%></span>
 | 
						|
					</TD>
 | 
						|
				</TR>
 | 
						|
				<TR><TD>
 | 
						|
						Credit Card: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<span class="lesson_text_db"><%=employee.getCcn()%></span>
 | 
						|
					</TD>
 | 
						|
					<TD>				
 | 
						|
						Credit Card Limit: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<span class="lesson_text_db"><%=employee.getCcnLimit()%></span>
 | 
						|
					</TD>
 | 
						|
				</TR>
 | 
						|
				<TR><TD>
 | 
						|
						Comments: 
 | 
						|
					</TD>
 | 
						|
					<TD colspan="3">
 | 
						|
						<span class="lesson_text_db"><%=employee.getPersonalDescription()%></span>
 | 
						|
					</TD>
 | 
						|
				</TR>				
 | 
						|
				<TR>
 | 
						|
					<TD colspan="2">	
 | 
						|
						Disciplinary Explanation: 
 | 
						|
					</TD>
 | 
						|
					<TD>				
 | 
						|
						Disc. Dates: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<span class="lesson_text_db"><%=employee.getDisciplinaryActionDate()%></span>
 | 
						|
					</TD>
 | 
						|
				<TR>
 | 
						|
					<TD colspan="4">
 | 
						|
						<span class="lesson_text_db"><%=employee.getDisciplinaryActionNotes()%></span>
 | 
						|
					</TD>
 | 
						|
				</TR>
 | 
						|
				<TR>
 | 
						|
				<TD>				
 | 
						|
						Manager: 
 | 
						|
					</TD>
 | 
						|
					<TD>
 | 
						|
						<span class="lesson_text_db"><%=employee.getManager()%></span>
 | 
						|
					</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(), GoatHillsFinancial.LISTSTAFF_ACTION))
 | 
						|
					 {
 | 
						|
					 %>
 | 
						|
						<form method="POST" action="attack?menu=<%=webSession.getCurrentMenu()%>">
 | 
						|
							<input type="hidden" name="<%=GoatHillsFinancial.EMPLOYEE_ID%>" value="<%=employee.getId()%>">
 | 
						|
							<input type="submit" name="action" value="<%=GoatHillsFinancial.LISTSTAFF_ACTION%>"/>
 | 
						|
						</form>
 | 
						|
					 <%
 | 
						|
					 }%>
 | 
						|
					 </td>
 | 
						|
		             <td width="50">
 | 
						|
					 <%					
 | 
						|
					 if (webSession.isAuthorizedInLesson(webSession.getUserIdInLesson(), GoatHillsFinancial.EDITPROFILE_ACTION))
 | 
						|
					 {
 | 
						|
					 %>
 | 
						|
						<form method="POST" action="attack?menu=<%=webSession.getCurrentMenu()%>">
 | 
						|
							<input type="hidden" name="<%=GoatHillsFinancial.EMPLOYEE_ID%>" value="<%=employee.getId()%>">
 | 
						|
							<input type="submit" name="action" value="<%=GoatHillsFinancial.EDITPROFILE_ACTION%>"/>
 | 
						|
						</form>
 | 
						|
					<%
 | 
						|
					}
 | 
						|
					%>
 | 
						|
					</td>					
 | 
						|
                    <td width="60">
 | 
						|
					<%					
 | 
						|
					if (webSession.isAuthorizedInLesson(webSession.getUserIdInLesson(), GoatHillsFinancial.DELETEPROFILE_ACTION))
 | 
						|
					{
 | 
						|
					%>
 | 
						|
						<form method="POST" action="attack?menu=<%=webSession.getCurrentMenu()%>">
 | 
						|
							<input type="hidden" name="<%=GoatHillsFinancial.EMPLOYEE_ID%>" value="<%=employee.getId()%>">
 | 
						|
							<input type="submit" name="action" value="<%=GoatHillsFinancial.DELETEPROFILE_ACTION%>"/>
 | 
						|
						</form>
 | 
						|
					<%
 | 
						|
					}
 | 
						|
					%>
 | 
						|
					</td>
 | 
						|
                      <td width="190"> </td>
 | 
						|
                      <td width="76">
 | 
						|
						<form method="POST">
 | 
						|
							<input type="submit" name="action" value="<%=GoatHillsFinancial.LOGOUT_ACTION%>"/>
 | 
						|
						</form>
 | 
						|
					</td>
 | 
						|
				</tr>
 | 
						|
         	</table>
 | 
						|
		</div> |