FA20 COMPSCI 642 001
(Review Questions) Web security
Skip To Content
Dashboard
  • Login
  • Dashboard
  • Calendar
  • Inbox
  • History
  • Help
Close
  • My Dashboard
  • FA20 COMPSCI 642 001
  • Assignments
  • (Review Questions) Web security
Fall 2020-2021
  • Home
  • Assignments
  • Files
  • Syllabus
  • Quizzes
  • Modules
  • Library Dashboard
  • Top Hat
  • NameCoach Roster
  • Kaltura Gallery
  • Zoom

(Review Questions) Web security

  • Due No Due Date
  • Points None
  1. What are the main differences between XSS and CSRF?
  2. Here are some mitigation techniques. Which attacks do you think each individually can prevent. Attacks we are considering XSS, CSRF, and SQLi.
    a) Content security policy (CSP)
    b) Same-origin policy (SOP)
    c) Client-side code sanitization to remove HTML containing certain tags, such as <script>
    d) Web Application Firewall (WAF)
    e) CSRF token (a random value for each instantiation of the webform)

  3. Assume a web service implements a login form in the following way:
    ... 
    <form action="signin.php" method="POST"/>
    <p>
    Username: <input type="text" name="login" /><br />
    Password: <input type="text" value="password" />
    </p>
    </form>
    <?php $query = "SELECT * FROM users WHERE username = '{$_POST['login']}' AND password= '{$_POST['password']}'";
    $result = mysql_query($query);
    ... ?>
    ...
    a) Show how can you get the data of all the users in the database.
    b) Give the values of the “login” and the “password” field in the form.
    c) Can you log in to user account without having their password?
    d) How is the website storing their password?
  4. What is CSRF token, and what is it useful for?
  5. Can captcha prevent CSRF? Why/Why not?
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