• kth.se
  • Student web
  • Intranet
  • kth.se
  • Student web
  • Intranet
Login
DD2395/DD2391 HT22
Bonus: Lab W
Skip to content
Dashboard
  • Login
  • Dashboard
  • Calendar
  • Inbox
  • History
  • Help
Close
  • Min översikt
  • DD2395/DD2391 HT22
  • Assignments
  • Bonus: Lab W
  • Home
  • Syllabus
  • Assignments
  • Modules
  • Course Evaluation

Bonus: Lab W

  • Due No due date
  • Points 1

Lab W Bonus Challenge: Password Theft

Create an attack that will steal the victim's username and password, even if the victim is diligent about only entering their password when the URL address bar shows http://zoobar/. Links to an external site.

  • Your solution is a short HTML document that the grader (TA) will open using the web browser.
  • The grader will not be logged in to the zoobar web site before loading your page.
  • Upon loading your document, the browser should immediately be redirected to http://zoobar/ Links to an external site., such that the address bar shows nothing else. The grader will now enter a username and password and press the "Log in" button.
  • When the "Log in" button is pressed, post the username and password (separated by a comma) using the log script.
  • The login form should appear normal to the user and assuming the username and password are correct the login should proceed the same way it always does.
  • Hint: The site uses htmlspecialchars() Links to an external site. to sanitize the reflected username, but something is not quite right.

 

For this attack, you may find that using alert() to test for script injection does not work; Firefox blocks it when it's causing an infinite loop of dialog boxes. Try other ways to probe whether your code is running, such as document.loginform.login_username.value=42.

0
Please include a description
Additional comments:
Rating max score to > Pts
Please include a rating title

Rubric

Find rubric
Please include a title
Find a rubric
Title
You've already rated students with this rubric. Any major changes could affect their assessment results.
 
 
 
 
 
 
 
     
Can't change a rubric once you've started using it.  
Title
Criteria Ratings Pts
This criterion is linked to a learning outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 Pts Full marks blank
0 to >0 Pts No marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional comments
This criterion is linked to a learning outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 Pts Full marks blank
0 to >0 Pts No marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional comments
Total points: 5 out of 5
Previous
Next
Assignment: Lab W (Web)Next Module:
Week 7 (41)