SlideShare uma empresa Scribd logo
1 de 22
Mercedes-Benz Research and Development India


UI-Redressing Attacks
The Process & Exploitation
Amol Naik
4th Aug 2012
Mercedes-Benz Research and Development India


  Agenda

  • Introduction to UI-Redressing attacks
  • Server-Side Mitigations
  • Bug Bounties
  • Target
  • Tools
  • CSS Basics
  • Exploitation Techniques




2 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


  I am

  • Web Application Pentester
  • Bug Hunter – Google, Facebook, Twitter
  • Web Challenges Coder for nullcon HackIM since 2011
  • Winner of ClubHACK preCON 2011 CTF
  • Active member of Garage4Hackers
  • Blog at: http://amolnaik4.blogspot.com
  • Twitter: @amolnaik4




3 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


  UI-Redressing Attacks

                                                                      •Change User Interface in Browser
                                                                            •    Invisible Iframes
                                                                            •    CSS Tricks
                                                                            •    HTML5 Drag-Drop



                                                                      •Victims clicks button/link on attacker’s
                                                                      site


                                                                      •He/She actually clicking on Vulnerable
                                                                      Site




4 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


  UI-Redressing Attacks




5 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


  Impact

  • One Click Attack
  • CSRF Protection Bypass
  • Cross-Domain Content Extraction
  • Exploit “Self XSS”




6 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


  Server-Side Mitigations

  • X-Frame-Options
       -    HTTP Response Header
       -    Supported by all latest browsers




  • X-Frame-Options: DENY
       -    The page can not be rendered in a frame, regardless of the site attempting to do so



  • X-Frame-Options: SAMEORIGIN
       -    The page can only be rendered in a frame on the same origin as the page itself




7 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


  Server-Side Mitigations

  • Frame Bursting Code
       -    JavaScript
       -    Ensures the current frame is the most top level window




8 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


  Bug Bounties

  • Google
       -    Bounty Price upto $3133.7
       -    XSS, CSRF main focus
       -    Researcher will be listed in Google Security Hall of Fame




  • Facebook
       -    Bounty price upto $5000
       -    XSS, CSRF, Open Redirect, Database Injection
       -    Researcher will be listed in Facebook WhiteHat List




9 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


   Target

   • CSRF Protected actions


   • Pages with sensitive information in page-source


   • Self XSS




10 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


   Tools




11 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


   CSS Basics

   • Opacity
        -    Set Transparency to an element

   • Top,Left
        -    Negative values shifts elements out of browser window




   • Position
        -    Static (default)
        -    Relative
        -    Absolute
        -    Fixed



12 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India




                                           Exploitation Techniques




13 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


   Simple Clickjacking

   • Google
        -    Remove Google Books Service
        -    FIXED




   • Facebook
        -    Add Any Facebook App
        -    FIXED




14 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


   Hijack 2 Clicks

   • Google
        -    Remove Google Web History, Health & Orkut
        -    FIXED




15 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


   Cross-Domain Content Extraction

   • Facebook
        -    Get Token from page-source
        -    Use of HTML5 Drag-Drop
        -    Only possible in FireFox 13
        -    FIXED




16 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


   Fake Captcha

   • Facebook
        -    Get Token
        -    FIXED




17 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


   Self-XSS

   • Scenario
        -    Input field is vulnerable to XSS
        -    Vulnerable page sends user input to other page
        -    And output is reflected to vulnerable page
        -    Ajax call used to send the user data
        -    GET/POST XSS exploitation method doesn’t work
        -    How to exploit ?




18 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


   Self-XSS

   • Solution
        -    HTML5 Drag-Drop




   • Google
        -    Google Map examples
        -    Google Base examples
        -    FIXED




19 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


   Bursting Frame Buster

   • Adobe
        -    Adobe Flash Manager Setting page
        -    Discovered & reported by “Nafeez Ahmed AKA skeptic_fx”
        -    “204 No Content” is the trick
        -    FIXED




20 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


   Thanks

   • Lavakumar K : http://www.andlabs.org
   • Kotowicz : http://blog.kotowicz.net
   • Nafeez Ahmed : http://blog.skepticfx.com
   • Marcus Niemietz : “UI Redressing: Attacks & Countermeasures
     Revisited”
   • OWASP : http://www.owasp.org
   • Imperva : http://www.imperva.com
   • W3School : http://www.w3school.com




21 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
Mercedes-Benz Research and Development India


   Questions

   • Amol Naik
        -    http://amolnaik4.blogspot.com
        -    @amolnaik4




22 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012

Mais conteúdo relacionado

Semelhante a UI-Redressing Attacks - The Process & Exploitation

Rise of the responsive single page application
Rise of the responsive single page applicationRise of the responsive single page application
Rise of the responsive single page applicationOren Shatken
 
Micro Frontends.pptx
Micro Frontends.pptxMicro Frontends.pptx
Micro Frontends.pptxShanAli738907
 
Angular JS - Develop Responsive Single Page Application
Angular JS - Develop Responsive Single Page ApplicationAngular JS - Develop Responsive Single Page Application
Angular JS - Develop Responsive Single Page ApplicationEdureka!
 
Webinar on Angular JS titled 'Develop Responsive Single Page Application'
Webinar on Angular JS titled 'Develop Responsive Single Page Application'Webinar on Angular JS titled 'Develop Responsive Single Page Application'
Webinar on Angular JS titled 'Develop Responsive Single Page Application'Edureka!
 
Mobile App Development and Xamarin as a Complete Mobile Solution
Mobile App Development and Xamarin as a Complete Mobile SolutionMobile App Development and Xamarin as a Complete Mobile Solution
Mobile App Development and Xamarin as a Complete Mobile SolutionMukteswar Patnaik
 
Android Platform Overview - Azercell Barama
Android Platform Overview - Azercell BaramaAndroid Platform Overview - Azercell Barama
Android Platform Overview - Azercell BaramaRamin Orujov
 
Benchmarking Web Application Scanners for YOUR Organization
Benchmarking Web Application Scanners for YOUR OrganizationBenchmarking Web Application Scanners for YOUR Organization
Benchmarking Web Application Scanners for YOUR OrganizationDenim Group
 
Moving to a headless solution based on sitecore 9 and javascript services
Moving to a headless solution based on sitecore 9 and javascript servicesMoving to a headless solution based on sitecore 9 and javascript services
Moving to a headless solution based on sitecore 9 and javascript servicesMohamed Krimi
 
10 Web Performance Lessons For the 21st Century
10 Web Performance Lessons For the  21st Century10 Web Performance Lessons For the  21st Century
10 Web Performance Lessons For the 21st CenturyMateusz Kwasniewski
 
AngularJS : Superheroic JavaScript MVW Framework
AngularJS : Superheroic JavaScript MVW FrameworkAngularJS : Superheroic JavaScript MVW Framework
AngularJS : Superheroic JavaScript MVW FrameworkEdureka!
 
Mobile Website or Responsive Design? The Answer is NEITHER.
Mobile Website or Responsive Design? The Answer is NEITHER.Mobile Website or Responsive Design? The Answer is NEITHER.
Mobile Website or Responsive Design? The Answer is NEITHER.TWG
 
Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...
Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...
Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...FITC
 
Mobile Accessibility Best Practices & Trends
Mobile Accessibility Best Practices & TrendsMobile Accessibility Best Practices & Trends
Mobile Accessibility Best Practices & TrendsAidan Tierney
 
Web Accessibility: Showing your users you care
Web Accessibility: Showing your users you careWeb Accessibility: Showing your users you care
Web Accessibility: Showing your users you careTodd Milliken
 
Mobile Apps -- From Idea to Execution
Mobile Apps -- From Idea to ExecutionMobile Apps -- From Idea to Execution
Mobile Apps -- From Idea to Executionideatoipo
 
Dnn connect dnnmobi-slides
Dnn connect dnnmobi-slidesDnn connect dnnmobi-slides
Dnn connect dnnmobi-slidesashishpd
 
Virendra Jain Portfolio
Virendra Jain PortfolioVirendra Jain Portfolio
Virendra Jain PortfolioVirendra Jain
 

Semelhante a UI-Redressing Attacks - The Process & Exploitation (20)

Rise of the responsive single page application
Rise of the responsive single page applicationRise of the responsive single page application
Rise of the responsive single page application
 
Micro Frontends.pptx
Micro Frontends.pptxMicro Frontends.pptx
Micro Frontends.pptx
 
Ui and ux principles
Ui and ux principlesUi and ux principles
Ui and ux principles
 
Web Design Patterns
Web Design PatternsWeb Design Patterns
Web Design Patterns
 
Angular JS - Develop Responsive Single Page Application
Angular JS - Develop Responsive Single Page ApplicationAngular JS - Develop Responsive Single Page Application
Angular JS - Develop Responsive Single Page Application
 
Webinar on Angular JS titled 'Develop Responsive Single Page Application'
Webinar on Angular JS titled 'Develop Responsive Single Page Application'Webinar on Angular JS titled 'Develop Responsive Single Page Application'
Webinar on Angular JS titled 'Develop Responsive Single Page Application'
 
Mobile App Development and Xamarin as a Complete Mobile Solution
Mobile App Development and Xamarin as a Complete Mobile SolutionMobile App Development and Xamarin as a Complete Mobile Solution
Mobile App Development and Xamarin as a Complete Mobile Solution
 
Android Platform Overview - Azercell Barama
Android Platform Overview - Azercell BaramaAndroid Platform Overview - Azercell Barama
Android Platform Overview - Azercell Barama
 
Benchmarking Web Application Scanners for YOUR Organization
Benchmarking Web Application Scanners for YOUR OrganizationBenchmarking Web Application Scanners for YOUR Organization
Benchmarking Web Application Scanners for YOUR Organization
 
Moving to a headless solution based on sitecore 9 and javascript services
Moving to a headless solution based on sitecore 9 and javascript servicesMoving to a headless solution based on sitecore 9 and javascript services
Moving to a headless solution based on sitecore 9 and javascript services
 
10 Web Performance Lessons For the 21st Century
10 Web Performance Lessons For the  21st Century10 Web Performance Lessons For the  21st Century
10 Web Performance Lessons For the 21st Century
 
Responsive & Adaptive Web Design
Responsive & Adaptive Web DesignResponsive & Adaptive Web Design
Responsive & Adaptive Web Design
 
AngularJS : Superheroic JavaScript MVW Framework
AngularJS : Superheroic JavaScript MVW FrameworkAngularJS : Superheroic JavaScript MVW Framework
AngularJS : Superheroic JavaScript MVW Framework
 
Mobile Website or Responsive Design? The Answer is NEITHER.
Mobile Website or Responsive Design? The Answer is NEITHER.Mobile Website or Responsive Design? The Answer is NEITHER.
Mobile Website or Responsive Design? The Answer is NEITHER.
 
Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...
Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...
Should I Build a Separate Mobile Site or a Responsive Site? Neither! with Der...
 
Mobile Accessibility Best Practices & Trends
Mobile Accessibility Best Practices & TrendsMobile Accessibility Best Practices & Trends
Mobile Accessibility Best Practices & Trends
 
Web Accessibility: Showing your users you care
Web Accessibility: Showing your users you careWeb Accessibility: Showing your users you care
Web Accessibility: Showing your users you care
 
Mobile Apps -- From Idea to Execution
Mobile Apps -- From Idea to ExecutionMobile Apps -- From Idea to Execution
Mobile Apps -- From Idea to Execution
 
Dnn connect dnnmobi-slides
Dnn connect dnnmobi-slidesDnn connect dnnmobi-slides
Dnn connect dnnmobi-slides
 
Virendra Jain Portfolio
Virendra Jain PortfolioVirendra Jain Portfolio
Virendra Jain Portfolio
 

Último

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 

Último (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 

UI-Redressing Attacks - The Process & Exploitation

  • 1. Mercedes-Benz Research and Development India UI-Redressing Attacks The Process & Exploitation Amol Naik 4th Aug 2012
  • 2. Mercedes-Benz Research and Development India Agenda • Introduction to UI-Redressing attacks • Server-Side Mitigations • Bug Bounties • Target • Tools • CSS Basics • Exploitation Techniques 2 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 3. Mercedes-Benz Research and Development India I am • Web Application Pentester • Bug Hunter – Google, Facebook, Twitter • Web Challenges Coder for nullcon HackIM since 2011 • Winner of ClubHACK preCON 2011 CTF • Active member of Garage4Hackers • Blog at: http://amolnaik4.blogspot.com • Twitter: @amolnaik4 3 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 4. Mercedes-Benz Research and Development India UI-Redressing Attacks •Change User Interface in Browser • Invisible Iframes • CSS Tricks • HTML5 Drag-Drop •Victims clicks button/link on attacker’s site •He/She actually clicking on Vulnerable Site 4 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 5. Mercedes-Benz Research and Development India UI-Redressing Attacks 5 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 6. Mercedes-Benz Research and Development India Impact • One Click Attack • CSRF Protection Bypass • Cross-Domain Content Extraction • Exploit “Self XSS” 6 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 7. Mercedes-Benz Research and Development India Server-Side Mitigations • X-Frame-Options - HTTP Response Header - Supported by all latest browsers • X-Frame-Options: DENY - The page can not be rendered in a frame, regardless of the site attempting to do so • X-Frame-Options: SAMEORIGIN - The page can only be rendered in a frame on the same origin as the page itself 7 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 8. Mercedes-Benz Research and Development India Server-Side Mitigations • Frame Bursting Code - JavaScript - Ensures the current frame is the most top level window 8 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 9. Mercedes-Benz Research and Development India Bug Bounties • Google - Bounty Price upto $3133.7 - XSS, CSRF main focus - Researcher will be listed in Google Security Hall of Fame • Facebook - Bounty price upto $5000 - XSS, CSRF, Open Redirect, Database Injection - Researcher will be listed in Facebook WhiteHat List 9 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 10. Mercedes-Benz Research and Development India Target • CSRF Protected actions • Pages with sensitive information in page-source • Self XSS 10 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 11. Mercedes-Benz Research and Development India Tools 11 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 12. Mercedes-Benz Research and Development India CSS Basics • Opacity - Set Transparency to an element • Top,Left - Negative values shifts elements out of browser window • Position - Static (default) - Relative - Absolute - Fixed 12 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 13. Mercedes-Benz Research and Development India Exploitation Techniques 13 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 14. Mercedes-Benz Research and Development India Simple Clickjacking • Google - Remove Google Books Service - FIXED • Facebook - Add Any Facebook App - FIXED 14 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 15. Mercedes-Benz Research and Development India Hijack 2 Clicks • Google - Remove Google Web History, Health & Orkut - FIXED 15 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 16. Mercedes-Benz Research and Development India Cross-Domain Content Extraction • Facebook - Get Token from page-source - Use of HTML5 Drag-Drop - Only possible in FireFox 13 - FIXED 16 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 17. Mercedes-Benz Research and Development India Fake Captcha • Facebook - Get Token - FIXED 17 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 18. Mercedes-Benz Research and Development India Self-XSS • Scenario - Input field is vulnerable to XSS - Vulnerable page sends user input to other page - And output is reflected to vulnerable page - Ajax call used to send the user data - GET/POST XSS exploitation method doesn’t work - How to exploit ? 18 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 19. Mercedes-Benz Research and Development India Self-XSS • Solution - HTML5 Drag-Drop • Google - Google Map examples - Google Base examples - FIXED 19 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 20. Mercedes-Benz Research and Development India Bursting Frame Buster • Adobe - Adobe Flash Manager Setting page - Discovered & reported by “Nafeez Ahmed AKA skeptic_fx” - “204 No Content” is the trick - FIXED 20 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 21. Mercedes-Benz Research and Development India Thanks • Lavakumar K : http://www.andlabs.org • Kotowicz : http://blog.kotowicz.net • Nafeez Ahmed : http://blog.skepticfx.com • Marcus Niemietz : “UI Redressing: Attacks & Countermeasures Revisited” • OWASP : http://www.owasp.org • Imperva : http://www.imperva.com • W3School : http://www.w3school.com 21 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012
  • 22. Mercedes-Benz Research and Development India Questions • Amol Naik - http://amolnaik4.blogspot.com - @amolnaik4 22 UI-Redressing Attacks: The Process & Exploitation | Amol Naik | 4th Aug 2012

Notas do Editor

  1. Presentation title in CorpoS Regular 9 pt | Department | Date
  2. Presentation title in CorpoS Regular 9 pt | Department | Date
  3. Presentation title in CorpoS Regular 9 pt | Department | Date
  4. Presentation title in CorpoS Regular 9 pt | Department | Date
  5. Presentation title in CorpoS Regular 9 pt | Department | Date
  6. Presentation title in CorpoS Regular 9 pt | Department | Date
  7. Presentation title in CorpoS Regular 9 pt | Department | Date
  8. Presentation title in CorpoS Regular 9 pt | Department | Date
  9. Presentation title in CorpoS Regular 9 pt | Department | Date
  10. Presentation title in CorpoS Regular 9 pt | Department | Date
  11. Presentation title in CorpoS Regular 9 pt | Department | Date
  12. Presentation title in CorpoS Regular 9 pt | Department | Date
  13. Presentation title in CorpoS Regular 9 pt | Department | Date
  14. Presentation title in CorpoS Regular 9 pt | Department | Date
  15. Presentation title in CorpoS Regular 9 pt | Department | Date
  16. Presentation title in CorpoS Regular 9 pt | Department | Date
  17. Presentation title in CorpoS Regular 9 pt | Department | Date
  18. Presentation title in CorpoS Regular 9 pt | Department | Date
  19. Presentation title in CorpoS Regular 9 pt | Department | Date
  20. Presentation title in CorpoS Regular 9 pt | Department | Date
  21. Presentation title in CorpoS Regular 9 pt | Department | Date
  22. Presentation title in CorpoS Regular 9 pt | Department | Date