logo
  • Writing Services
    • Writing Services
      • Essays & Papers
      • Essay Service
      • Write my research paper
      • Apa paper writing service
      • Dissertation writing services
      • Coursework writing service
      • Homework & Assignment
      • Pay for homework
      • English assignment help
      • Do my assignment
      • Assignment help
      • Finance assignment help
      • Do my math homework
      • Spss assignment help
      • Do my homework
      • Biology assignment help
      • Chemistry assignment help
      • More services
      • Personal statement writing service
      • Do my excel assignment
      • Law essay writing service
      • Annotated bibliography writing service
      • Nursing assignment help
      • Write my lab report
      • Capstone project writing service
      • Do my powerpoint presentation
  • Study Resources
    • Study Resources
      • Universities
      • Courses
      • Documents

Answer Key

Ultimate XSS Beginner Guide

  • University:

    Sam Houston State University
  • Course:

    COSC 2347 | Special Topics/Programming
  • Academic year:

    2024

  • Views:

    172

    Pages:

    54

  • Author:

    customer-8672189

Ultimate XSS Beginner guide BY UNCLE RAT Agenda What is XSS? u XSS Contexts u u Javascript context u HTML tag attribute u HTML tag u Types of XSS u Reflected XSS u Stored XSS u DOM XSS Agenda u How to test for XSS u Reflected u Stored u DOM XSS u Getting around Filters u Raising our impact What is XSS What is XSS u Allows attacker to inject client-side script u Happens because developer does not sanitize input u XSS attacks are possible in VBScript, ActiveX, Flash, and even CSS u Most common in javascript XSS Contexts XSS Contexts - For stored and reflected XSS XSS into JS XSS in HTML tag attributes XSS between HTML tags XSS in JavaScript template literals XSS in the context of the AngularJS sandbox XSS in CSS XSS in headers ... Types of XSS Types of XSS u Many attack types u Reflected XSS vs stored XSS u Dom based vs source based u Blind XSS u Mutation u CSTI XSS Types of XSS – Reflected Types of XSS - Reflected u User input gets reflected u Into an attribute of an html tag u Into the HTML page u Into the javascript context u ... User input does not gets stored into database u User input is not properly sanitized u User input can contain javascript code u Types of XSS - Reflected u CAN OCCUR WITH POST CALLS u Add CSRF into the mix Types of XSS – Stored Types of XSS - Stored u User input gets stored into database u Database value gets reflected u Into HTML page u Into HTML tag attribute u Into the javascript context u… Types of XSS - Stored u User input is not sanitized properly u At u input u And at write to the database u And at read from database User input can contain malicious javascript code Types of XSS – DOM Types of XSS - DOM u var search = document.getElementById('search').value; u var results = document.getElementById('results'); u results.innerHTML = 'You searched for: ' + search; u Results.innerHTML <<< DOM Sink Types of XSS - DOM u DOM Sinks u Where Model user input enters the Document Object u Eval() u InnerHTML u ... Types of XSS - DOM u Most common sources for DOM XSS u Arises from windows.location u Usually u OR in query string (?) fragment portion of URL(#) Types of XSS – DOM VS Source based Types of XSS – DOM VS Source based u DOM u u Document Object Model u Everything surrounding your page u Like URL u Like History u Can only be investigated in the developer console of browser u ... Source u Source code of a website Types of XSS – Blind XSS Types of XSS – Blind XSS u Relies heavily on out of band servers u Implements the use a payload but no results u Later we get a call informing payload triggered u Can be stored and reflected u Reflected in case of knowing a page and parameter exist but no access Types of XSS – mutation XSS Types of XSS – Mutation XSS u Relatively new technique u Bypassed DOM u Browser will try to repair our ”Broken” payload u Making into a full XSS u Hence: Mutation, browser mutates payload, running directly Types of XSS – CSTI Types of XSS – CSTI XSS u Front-end templating engines such as angularJS and vueJS u If used improperly allow for CSTI u Can lead to XSS XSS Contexts XSS Contexts – XSS in HTML tag XSS Contexts – XSS in HTML tag attributes u u u Test u u u

Hi there

u u XSS Contexts – XSS in HTML u We can u Insert our own HTML tags if developer did not sanitize properly u Make that a javascript executing tag u Execute arbitrary javascript code u Execute a XSS attack XSS Contexts – XSS in HTML tag attributes u Hackxpert.com?Name= u ... XSS Contexts – XSS in HTML tag attributes XSS Contexts – XSS in HTML tag attributes u u ... u u We can u Break out of the attribute if our input is not sanitized u Insert our own arbitrary JS code u Execute XSS u "> XSS Contexts – Into JS XSS Contexts – Into JS XSS Contexts – Into JS u Since we can control searchterms u We can insert ’ u We can break out of the existing script tag u We can insert our javascript u ‘ u ‘ to break out of JS function u Ending the current script tag with u Starting our own scripts How to test for XSS – General How to test for XSS - General u Attack vectors u Depend on the context u JS: '"`… u u HTML: u u Single quote, double quote, backtick... to break out of JS function First test for HTML injection, then expand to XSS HTML attribute: '>">`>… u Single quote, double quote, backtick... to break out of html tag attribute u All are simple, if they break the page or insert image, look deeper u Replace the tag with your own tag like

Ultimate XSS Beginner Guide

Ultimate XSS Beginner Guide - Page 1
Ultimate XSS Beginner Guide - Page 2
Ultimate XSS Beginner Guide - Page 3
Ultimate XSS Beginner Guide - Page 4
Ultimate XSS Beginner Guide - Page 5
Ultimate XSS Beginner Guide - Page 6
Ultimate XSS Beginner Guide - Page 7
Ultimate XSS Beginner Guide - Page 8
Ultimate XSS Beginner Guide - Page 9
Ultimate XSS Beginner Guide - Page 10
Ultimate XSS Beginner Guide - Page 11
Ultimate XSS Beginner Guide - Page 12
Ultimate XSS Beginner Guide - Page 13
Ultimate XSS Beginner Guide - Page 14
Ultimate XSS Beginner Guide - Page 15
Ultimate XSS Beginner Guide - Page 16
Ultimate XSS Beginner Guide - Page 17
Ultimate XSS Beginner Guide - Page 18
Ultimate XSS Beginner Guide - Page 19
Ultimate XSS Beginner Guide - Page 20
Ultimate XSS Beginner Guide - Page 21
Ultimate XSS Beginner Guide - Page 22
Ultimate XSS Beginner Guide - Page 23
Ultimate XSS Beginner Guide - Page 24
Ultimate XSS Beginner Guide - Page 25
Ultimate XSS Beginner Guide - Page 26
Ultimate XSS Beginner Guide - Page 27
Ultimate XSS Beginner Guide - Page 28
Ultimate XSS Beginner Guide - Page 29
Ultimate XSS Beginner Guide - Page 30
Ultimate XSS Beginner Guide - Page 31
Ultimate XSS Beginner Guide - Page 32
Ultimate XSS Beginner Guide - Page 33
Ultimate XSS Beginner Guide - Page 34
Ultimate XSS Beginner Guide - Page 35
Ultimate XSS Beginner Guide - Page 36
Ultimate XSS Beginner Guide - Page 37
Ultimate XSS Beginner Guide - Page 38
Ultimate XSS Beginner Guide - Page 39
Ultimate XSS Beginner Guide - Page 40
Ultimate XSS Beginner Guide - Page 41
Ultimate XSS Beginner Guide - Page 42
Ultimate XSS Beginner Guide - Page 43
Ultimate XSS Beginner Guide - Page 44
Ultimate XSS Beginner Guide - Page 45
Ultimate XSS Beginner Guide - Page 46
Ultimate XSS Beginner Guide - Page 47
Ultimate XSS Beginner Guide - Page 48
Ultimate XSS Beginner Guide - Page 49
Ultimate XSS Beginner Guide - Page 50
Ultimate XSS Beginner Guide - Page 51
Ultimate XSS Beginner Guide - Page 52
Ultimate XSS Beginner Guide - Page 53
Ultimate XSS Beginner Guide - Page 54
of 54
0/0

Recommended Documents

How to Start a New Protocol in Cayuse IACUC
How to Start a New Protocol in Cayuse IACUC
Sam Houston State University COSC 2347 | Special Topics/Programming

Fair Use Policy

EduBirdie considers academic integrity to be the essential part of the learning process and does not support any violation of the academic standards. Should you have any questions regarding our Fair Use Policy or become aware of any violations, please do not hesitate to contact us via support@edubirdie.com.

logo

Popular Services

  • Essay writing service
  • Pay someone to do my homework
  • Do my assignment for me
  • Research paper writing services
  • Dissertation writing services
  • Do my homework

Study Resources

  • Essay Examples
  • Blog
  • Study Notes

About Us

  • How it works?
  • Testimonials
  • FAQ
  • Money back guarantee

Contact us

mail icon
  • support@edubirdie.com
phone-icon
  • +3 (595) 691 8356
  • +1 (888) 337 5415
DMCA.com Protection Status

For press

  • Press and media
  • Brand assets
Facebook Twitter Instagram LinkedIn

Local sites

  • Ca.EduBirdie.com- The Best Essay Writing Service for Canadian Students

We accept

2024 © EduBirdie.com. All rights reserved

RADIOPLUS EXPERTS LTD. Louki Akrita, 23 Bellapais Court, Flat/Office 46 1100, Nicosia, Cyprus

Privacy Policy
|
Terms of Use
|
Fair use policy
Subscription rules
|
Referral program Rules
|
Payment and Refund Policy
|
Cookie Policy

Report

Tell us what’s wrong with it:

Thanks, got it!
We will moderate it soon!

Report

Tell us what’s wrong with it:

Almost There!

Two easy ways to download this document

or
Upgrade to premium for unlimited access
Calendar Icon

Free up your schedule!

Our EduBirdie Experts Are Here for You 24/7! Just fill out a form and let us know how we can assist you.

Unlock Icon

Take 5 seconds to unlock

Enter your email below and get instant access to your document

This field is required
Please enter a valid email address
This field is required
This field is required

By clicking 'Sign Up', you agree to our Terms and Conditions and Privacy Policy.