SlideShare une entreprise Scribd logo
1  sur  17
CROSS SITE SCRIPTING
BY :-
ASHUTOSH KUMAR RAI
Sunday,
July 27,
2014
1
INDEX
 INTRODUCTION
 TYPES OF XSS
 PREVENTION
 WORST CASE SCENARIO
 CONCLUSION
Sunday, July 27,
2014
2
WHAT IS CROSS SITE
SCRIPTING..??
 According to current statistics, Cross Site Scripting (XSS) is
one of the most widespread security problems today.
 XSS is an attack technique that forces a website to echo
attacker-supplied executable code, which then loads in a
user’s Web browser.
 The server is merely the host, while the attack executes
within the Web browser.
 Samy worm1 became the first major worm to use Cross-
Site Scripting for infection propagation. Sunday, July 27,
2014
3
WHAT IS CROSS SITE-SCRIPTING..??
 AN ATTACKER
1. Anonymous Internet User
2. Malicious Internal User
 A WEB SEREVER
External (e.g.: Social networking website, Shop,
Information). Internal (e.g.: Employees Self Service Portal)
 A CLIENT
• Any type of customer
• Anonymous user accessing the Web-Server
Sunday, July 27,
2014
4
TYPES OF XSS
• PERSISTENT
a) It does not require specially crafted links for execution
b) A hacker merely submits XSS exploit code to an area
of a website that is likely to be visited by other users.
c) These areas could be blog comments, user reviews,
message board posts etc
d) Persistent XSS much more dangerous than non-
persistent because the user has no means of defending
himself
Sunday, July 27,
2014
5
TYPES OF XSS..
• USED TRICK SOME WAY
TO OPEN THE LINK.
Sunday, July 27,
2014
6
TYPES OF XSS..
• NON – PERSISTENT
The non-persistent cross-site scripting
vulnerability is by far the
most common type.
Sunday, July 27,
2014
7
TYPES OF XSS..
• EMBEDDED HTML TAGS
• Several HTML tags possess attributes
that initiate Web browser HTTP requests
automatically upon page load
• This is done by finding an unvalidated
request parameter that is reflected into the
response header
Sunday, July 27,
2014
8
PREVENTION..
 The first and most effective solution is to disable all
scripting language proxy servers can help filter out
malicious scripting in HTML.
 Four approaches of prevention against XSS:
a) USERS
b) CUSTOMER WEB APPLICATIONS
c) SECURITY PROFESSIONALS
d) BROWSER SECURITY
Sunday, July 27,
2014
9
PREVENTION
 USERS :
 Exercise caution when clicking on links
 Install some browser add-ons such as NoScript25 or the Netcraft
Toolbar26
 avoiding questionable websites such as those offering hacking information
etc.
 CUSTOMER WEB APPLICATIONS :
 developers must focus on performing rock solid Input Validation on all
user-submitted content
 Protect sensitive functionality from being executed from third-party websites
 Code must contain no javascript
Sunday, July 27,
2014
10
PREVENTION..
 SECURITY PROFESSIONALS
a. The only way to determine if your security practices are providing
adequate safeguards is to measure them and measure often
b. It may take tens, if not hundreds, of thousands of security tests to
properly assess the security of a website
 BROWSER VENDORS
a. Mozilla (Firefox), Microsoft and Opera development teams must begin
formalizing and implementing Content-Restrictions
b. Mozilla (Firefox) developer, please implement http Only. It’s been around
for years! Sunday, July 27,
2014
11
WORST CASE SCENARIO
 An attacker can use your web site to
launch attacks against your users.
 A cross-site Scripting vulnerability in
one server in your domain presents a risk
to others in its environment since it can
become a launching pad for attacks
against other servers. Sunday, July 27,
2014
12
WORST CASE SCENARIO
• Example of how
websites include
google adsense
using javascript
Sunday, July 27,
2014
13
CONCLUSION
• Malware authors are contend to experiment with the
new possiblities.
• The techniques of the malware authors dramatically
improved as propagation becomes faster.
• Payload becomes more severe with the introuction of
backdoors,rootkits and botnets.
• XSS malware is in it's early stage of exploration.
Sunday, July 27,
2014
14
CONCLUSION
• The first major XSS worm which was successful
experiment in propagation was the samy worm
• If history continues to repeat itself it is safe to say we
will witness and increased volume of XSS malware
outbreaks
• Who is responsible...???
• The business owner who operates a business application
is in charge for secure operation.
Sunday, July 27,
2014
15
CONCLUSION
• Every piece of software could be vulnerable if developer
doesn't do his homework in terms of security.
• A process is required that insures that security is
considered throughout the complete life cycle of the
application.
• GISWS survey showed that 51% of those surved feel
that internal employees are indeed the bigger threat
• Undetected and unchecked exploitation can also lead to
implantation of malicious software giving malicious attacker
the ability to attack any time
Sunday, July 27,
2014
16
THANK YOU…..!!!!
Sunday, July 27,
2014
17

Contenu connexe

Tendances

Cross Site Scripting
Cross Site ScriptingCross Site Scripting
Cross Site Scripting
Ali Mattash
 
The Cross Site Scripting Guide
The Cross Site Scripting GuideThe Cross Site Scripting Guide
The Cross Site Scripting Guide
Daisuke_Dan
 
Cross site scripting (xss)
Cross site scripting (xss)Cross site scripting (xss)
Cross site scripting (xss)
Manish Kumar
 
Cross Site Scripting (XSS)
Cross Site Scripting (XSS)Cross Site Scripting (XSS)
Cross Site Scripting (XSS)
OWASP Khartoum
 

Tendances (20)

Cross site scripting
Cross site scriptingCross site scripting
Cross site scripting
 
Cross Site Scripting
Cross Site ScriptingCross Site Scripting
Cross Site Scripting
 
XSS
XSSXSS
XSS
 
XSS- an application security vulnerability
XSS-   an application security vulnerabilityXSS-   an application security vulnerability
XSS- an application security vulnerability
 
Xss (cross site scripting)
Xss (cross site scripting)Xss (cross site scripting)
Xss (cross site scripting)
 
Cross site scripting
Cross site scriptingCross site scripting
Cross site scripting
 
The Cross Site Scripting Guide
The Cross Site Scripting GuideThe Cross Site Scripting Guide
The Cross Site Scripting Guide
 
Cross Site Scripting Defense Presentation
Cross Site Scripting Defense Presentation Cross Site Scripting Defense Presentation
Cross Site Scripting Defense Presentation
 
Cross site scripting (xss)
Cross site scripting (xss)Cross site scripting (xss)
Cross site scripting (xss)
 
XSS-Alert-Pentration testing tool
XSS-Alert-Pentration testing toolXSS-Alert-Pentration testing tool
XSS-Alert-Pentration testing tool
 
Cross site scripting (xss) attacks issues and defense - by sandeep kumbhar
Cross site scripting (xss) attacks issues and defense - by sandeep kumbharCross site scripting (xss) attacks issues and defense - by sandeep kumbhar
Cross site scripting (xss) attacks issues and defense - by sandeep kumbhar
 
Secure coding | XSS Attacks on current Web Applications
Secure coding | XSS Attacks on current Web ApplicationsSecure coding | XSS Attacks on current Web Applications
Secure coding | XSS Attacks on current Web Applications
 
Cross site scripting
Cross site scripting Cross site scripting
Cross site scripting
 
Xss talk, attack and defense
Xss talk, attack and defenseXss talk, attack and defense
Xss talk, attack and defense
 
Xss attack
Xss attackXss attack
Xss attack
 
What is xss, blind xss and xploiting google gadgets
What is xss, blind xss and xploiting google gadgetsWhat is xss, blind xss and xploiting google gadgets
What is xss, blind xss and xploiting google gadgets
 
Cross Site Scripting (XSS)
Cross Site Scripting (XSS)Cross Site Scripting (XSS)
Cross Site Scripting (XSS)
 
Identifying Cross Site Scripting Vulnerabilities in Web Applications
Identifying Cross Site Scripting Vulnerabilities in Web ApplicationsIdentifying Cross Site Scripting Vulnerabilities in Web Applications
Identifying Cross Site Scripting Vulnerabilities in Web Applications
 
Xss what the heck-!
Xss   what the heck-!Xss   what the heck-!
Xss what the heck-!
 
Cross site scripting XSS
Cross site scripting XSSCross site scripting XSS
Cross site scripting XSS
 

Similaire à Cross site scripting

Joomla Security Simplified —  Seven Easy Steps For a More Secure Website
Joomla Security Simplified — Seven Easy Steps For a More Secure WebsiteJoomla Security Simplified — Seven Easy Steps For a More Secure Website
Joomla Security Simplified —  Seven Easy Steps For a More Secure Website
Imperva Incapsula
 
Web Application Security
Web Application SecurityWeb Application Security
Web Application Security
sudip pudasaini
 
Analysis of XSS attack Mitigation techniques based on Platforms and Browsers
Analysis of XSS attack Mitigation techniques based on Platforms and BrowsersAnalysis of XSS attack Mitigation techniques based on Platforms and Browsers
Analysis of XSS attack Mitigation techniques based on Platforms and Browsers
cscpconf
 
Understanding Your Attack Surface and Detecting & Mitigating External Threats
Understanding Your Attack Surface and Detecting & Mitigating External ThreatsUnderstanding Your Attack Surface and Detecting & Mitigating External Threats
Understanding Your Attack Surface and Detecting & Mitigating External Threats
Ulf Mattsson
 
ISSA Journal Paper - JavaScript Infection Model
ISSA Journal Paper - JavaScript Infection ModelISSA Journal Paper - JavaScript Infection Model
ISSA Journal Paper - JavaScript Infection Model
Aditya K Sood
 

Similaire à Cross site scripting (20)

VAPT PRESENTATION full.pptx
VAPT PRESENTATION full.pptxVAPT PRESENTATION full.pptx
VAPT PRESENTATION full.pptx
 
VAPT_FINAL SLIDES.pptx
VAPT_FINAL SLIDES.pptxVAPT_FINAL SLIDES.pptx
VAPT_FINAL SLIDES.pptx
 
4774.projectb.securitysquad
4774.projectb.securitysquad4774.projectb.securitysquad
4774.projectb.securitysquad
 
Cross Site Scripting Attacks and Preventive Measures
Cross Site Scripting Attacks and Preventive MeasuresCross Site Scripting Attacks and Preventive Measures
Cross Site Scripting Attacks and Preventive Measures
 
T04505103106
T04505103106T04505103106
T04505103106
 
Gg2511351142
Gg2511351142Gg2511351142
Gg2511351142
 
Gg2511351142
Gg2511351142Gg2511351142
Gg2511351142
 
website vulnerability scanner and reporter research paper
website vulnerability scanner and reporter research paperwebsite vulnerability scanner and reporter research paper
website vulnerability scanner and reporter research paper
 
Joomla Security Simplified —  Seven Easy Steps For a More Secure Website
Joomla Security Simplified — Seven Easy Steps For a More Secure WebsiteJoomla Security Simplified — Seven Easy Steps For a More Secure Website
Joomla Security Simplified —  Seven Easy Steps For a More Secure Website
 
vulnerability scanning and reporting tool
vulnerability scanning and reporting toolvulnerability scanning and reporting tool
vulnerability scanning and reporting tool
 
Your internet-exposure-that-makes-you-vulnerable
Your internet-exposure-that-makes-you-vulnerableYour internet-exposure-that-makes-you-vulnerable
Your internet-exposure-that-makes-you-vulnerable
 
Managing and Securing Web 2.0
Managing and Securing Web 2.0Managing and Securing Web 2.0
Managing and Securing Web 2.0
 
Lacework | Top 10 Cloud Security Threats
Lacework | Top 10 Cloud Security ThreatsLacework | Top 10 Cloud Security Threats
Lacework | Top 10 Cloud Security Threats
 
Reducing Your Attack Surface and Yuor Role in Cloud Workload Protection
Reducing Your Attack Surface and Yuor Role in Cloud Workload ProtectionReducing Your Attack Surface and Yuor Role in Cloud Workload Protection
Reducing Your Attack Surface and Yuor Role in Cloud Workload Protection
 
Web Application Security
Web Application SecurityWeb Application Security
Web Application Security
 
7 Ways to Stay 7 Years Ahead of the Threat
7 Ways to Stay 7 Years Ahead of the Threat7 Ways to Stay 7 Years Ahead of the Threat
7 Ways to Stay 7 Years Ahead of the Threat
 
Analysis of XSS attack Mitigation techniques based on Platforms and Browsers
Analysis of XSS attack Mitigation techniques based on Platforms and BrowsersAnalysis of XSS attack Mitigation techniques based on Platforms and Browsers
Analysis of XSS attack Mitigation techniques based on Platforms and Browsers
 
Understanding Your Attack Surface and Detecting & Mitigating External Threats
Understanding Your Attack Surface and Detecting & Mitigating External ThreatsUnderstanding Your Attack Surface and Detecting & Mitigating External Threats
Understanding Your Attack Surface and Detecting & Mitigating External Threats
 
ISSA Journal Paper - JavaScript Infection Model
ISSA Journal Paper - JavaScript Infection ModelISSA Journal Paper - JavaScript Infection Model
ISSA Journal Paper - JavaScript Infection Model
 
Project Presentation
Project Presentation Project Presentation
Project Presentation
 

Dernier

1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Dernier (20)

GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 

Cross site scripting

  • 1. CROSS SITE SCRIPTING BY :- ASHUTOSH KUMAR RAI Sunday, July 27, 2014 1
  • 2. INDEX  INTRODUCTION  TYPES OF XSS  PREVENTION  WORST CASE SCENARIO  CONCLUSION Sunday, July 27, 2014 2
  • 3. WHAT IS CROSS SITE SCRIPTING..??  According to current statistics, Cross Site Scripting (XSS) is one of the most widespread security problems today.  XSS is an attack technique that forces a website to echo attacker-supplied executable code, which then loads in a user’s Web browser.  The server is merely the host, while the attack executes within the Web browser.  Samy worm1 became the first major worm to use Cross- Site Scripting for infection propagation. Sunday, July 27, 2014 3
  • 4. WHAT IS CROSS SITE-SCRIPTING..??  AN ATTACKER 1. Anonymous Internet User 2. Malicious Internal User  A WEB SEREVER External (e.g.: Social networking website, Shop, Information). Internal (e.g.: Employees Self Service Portal)  A CLIENT • Any type of customer • Anonymous user accessing the Web-Server Sunday, July 27, 2014 4
  • 5. TYPES OF XSS • PERSISTENT a) It does not require specially crafted links for execution b) A hacker merely submits XSS exploit code to an area of a website that is likely to be visited by other users. c) These areas could be blog comments, user reviews, message board posts etc d) Persistent XSS much more dangerous than non- persistent because the user has no means of defending himself Sunday, July 27, 2014 5
  • 6. TYPES OF XSS.. • USED TRICK SOME WAY TO OPEN THE LINK. Sunday, July 27, 2014 6
  • 7. TYPES OF XSS.. • NON – PERSISTENT The non-persistent cross-site scripting vulnerability is by far the most common type. Sunday, July 27, 2014 7
  • 8. TYPES OF XSS.. • EMBEDDED HTML TAGS • Several HTML tags possess attributes that initiate Web browser HTTP requests automatically upon page load • This is done by finding an unvalidated request parameter that is reflected into the response header Sunday, July 27, 2014 8
  • 9. PREVENTION..  The first and most effective solution is to disable all scripting language proxy servers can help filter out malicious scripting in HTML.  Four approaches of prevention against XSS: a) USERS b) CUSTOMER WEB APPLICATIONS c) SECURITY PROFESSIONALS d) BROWSER SECURITY Sunday, July 27, 2014 9
  • 10. PREVENTION  USERS :  Exercise caution when clicking on links  Install some browser add-ons such as NoScript25 or the Netcraft Toolbar26  avoiding questionable websites such as those offering hacking information etc.  CUSTOMER WEB APPLICATIONS :  developers must focus on performing rock solid Input Validation on all user-submitted content  Protect sensitive functionality from being executed from third-party websites  Code must contain no javascript Sunday, July 27, 2014 10
  • 11. PREVENTION..  SECURITY PROFESSIONALS a. The only way to determine if your security practices are providing adequate safeguards is to measure them and measure often b. It may take tens, if not hundreds, of thousands of security tests to properly assess the security of a website  BROWSER VENDORS a. Mozilla (Firefox), Microsoft and Opera development teams must begin formalizing and implementing Content-Restrictions b. Mozilla (Firefox) developer, please implement http Only. It’s been around for years! Sunday, July 27, 2014 11
  • 12. WORST CASE SCENARIO  An attacker can use your web site to launch attacks against your users.  A cross-site Scripting vulnerability in one server in your domain presents a risk to others in its environment since it can become a launching pad for attacks against other servers. Sunday, July 27, 2014 12
  • 13. WORST CASE SCENARIO • Example of how websites include google adsense using javascript Sunday, July 27, 2014 13
  • 14. CONCLUSION • Malware authors are contend to experiment with the new possiblities. • The techniques of the malware authors dramatically improved as propagation becomes faster. • Payload becomes more severe with the introuction of backdoors,rootkits and botnets. • XSS malware is in it's early stage of exploration. Sunday, July 27, 2014 14
  • 15. CONCLUSION • The first major XSS worm which was successful experiment in propagation was the samy worm • If history continues to repeat itself it is safe to say we will witness and increased volume of XSS malware outbreaks • Who is responsible...??? • The business owner who operates a business application is in charge for secure operation. Sunday, July 27, 2014 15
  • 16. CONCLUSION • Every piece of software could be vulnerable if developer doesn't do his homework in terms of security. • A process is required that insures that security is considered throughout the complete life cycle of the application. • GISWS survey showed that 51% of those surved feel that internal employees are indeed the bigger threat • Undetected and unchecked exploitation can also lead to implantation of malicious software giving malicious attacker the ability to attack any time Sunday, July 27, 2014 16