• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Web Security Overview and Demo
 

Web Security Overview and Demo

on

  • 5,697 views

 

Statistics

Views

Total Views
5,697
Views on SlideShare
5,211
Embed Views
486

Actions

Likes
0
Downloads
187
Comments
1

12 Embeds 486

http://www.tonybibbs.com 260
http://feeds.feedburner.com 83
http://www.planet-php.net 82
http://planet-php.org 18
http://www.planet-php.org 14
http://canhnm.opensource.com.vn 14
http://lj-toys.com 5
http://canhnm.blogspot.com 4
http://www.slideshare.net 3
http://phpeye.com 1
http://jian.sg115.com 1
https://sos.sinnerschrader.de 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Web Security Overview and Demo Web Security Overview and Demo Presentation Transcript

      • Presented by Tony Bibbs
      • October 9, 2008
    Web Application Security
  • Rasmus Lerdorf “ The Web is broken and it's all your fault.”
  • “ There is no metric for compliance with a 'culture', and a 'culture of security' is overridden by a culture of 'get the job done' every time.” Jon Espenschied
  • Common Coding Vulnerabilities
    • Injection Flaws (SQL, LDAP, XPath, etc)‏
    • Cross Site Scripting (XSS)‏
    • Cross Site Request Forgeries (CSRF)‏
    • Buffer Overflows
  • Injection Flaws
    • “ SQL injection is a technique that exploits a security vulnerability occurring in the database layer of an application. The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed. It is in fact an instance of a more general class of vulnerabilities that can occur whenever one programming or scripting language is embedded inside another.”
  • Cross Site Scripting (XSS)‏
    • “ Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications which allow code injection by malicious web users into the web pages viewed by other users. An exploited cross-site scripting vulnerability can be used by attackers to bypass access controls such as the same origin policy. Vulnerabilities of this kind have been exploited to craft powerful phishing attacks and browser exploits. As of 2007, cross-site scripting carried out on websites were roughly 80% of all documented security vulnerabilities.”
  • CSRF Defined
    • Cross-site request forgery, also known as one click attack, sidejacking or session riding and abbreviated as CSRF (Sea-Surf) or XSRF, is a type of malicious exploit of websites. Although this type of attack has similarities to cross-site scripting (XSS), cross-site scripting requires the attacker to inject unauthorized code into a website, while cross-site request forgery merely transmits unauthorized commands from a user the website trusts.
  • “ Same Origin” Policy document, cookies bank.com blog.net XHR XHR TAG TAG JS
  • How CSRF Works
    • GET requests are the easiest:
      • - Beware “src” and “href” attributes
    • POST aren't immune:
      • <body onload=”document.forms[0].submit()”>
      • <form method=”POST” action=”_url_”>
        • <input type=”hidden” name=”amount” value=”$1,000” />
      • </form>
  • What Can a Hacker Do With CSRF?
    • Anything an authenticated user can do. Click links, submit forms, complete multi-step wizards.
    • Launch external attacks on Intranet sites.
    • No restrictions on same origin policy but are limited in that hackers can't read responses from other origins
  • Trivial CSRF Exploit
  • Exploiting Otherwise Secure Networks
  • CSRF Prevention
    • Avoid Persistent Sessions
    • Use GET method properly
    • Token-based checks with TTL.
    • Double Authenticate via AJAX (read cookie via JS and submit in the body).
    • Code reviews.
  • Framework-based Security
    • Framework implementations force security precautions.
    • PHP Examples: Flexy, Tainted Variables
    • CSRF prevention in PHP framework.
  • CSRF Resources
    • CSRFGuard (Java, .NET and PHP)‏
    • CSRTTester
  • Enterprise CSRF Mitigation
  • Questions?
  • Contacting Me
    • [email_address]
    • (515)281-6125
  • Credits
    • Download this presentation and sample code from here .
    • Some material in this presentation is covered by the OWASP license, specifically work by Eric Sheridan
    • Any of my own contributions are also covered by the OWASP license which can be found at http://www.owasp.org .