Presentation is loading. Please wait.

Presentation is loading. Please wait.

XSS: Cross Site Scripting Alan Geleynse. Example <?php $name = $_GET['name']; echo "Hello $name!";

Similar presentations


Presentation on theme: "XSS: Cross Site Scripting Alan Geleynse. Example <?php $name = $_GET['name']; echo "Hello $name!";"— Presentation transcript:

1 XSS: Cross Site Scripting Alan Geleynse

2 Example <?php $name = $_GET['name']; echo "Hello $name!";

3 /1.php?name= alert("XSS")

4  Don’t display parameters

5  User profile page  User enters their name  Other users can view their name

6 <?php $name = htmlspecialchars($_GET['name']); echo "Hello $name!";

7 <SCRIPT>alert("XSS") </SCRIPT>

8  Only way to protect against XSS is to remove:  <  >  This prevents the use of HTML as well

9

10 What do we do?  Don’t allow “ ” unless absolutely necessary  Never trust input  ALL data should be processed before display

11 Does this really happen?  9 days ago apache.org was compromised  Attackers opened a bug issue  The bug was a tinyurl directing to a XSS attack  The attack stole the user’s login cookie  This gave them access to administrator accounts  They uploaded a jsp file and could then log passwords  They sent password reset emails to convince users to log in

12 Questions


Download ppt "XSS: Cross Site Scripting Alan Geleynse. Example <?php $name = $_GET['name']; echo "Hello $name!";"

Similar presentations


Ads by Google